diff --git a/inc/myco.js b/inc/myco.js index da00268..01a5d59 100644 --- a/inc/myco.js +++ b/inc/myco.js @@ -299,6 +299,16 @@ on_categories_group_add_btn_click=function(e) { } } +on_export_group_btn_click=function(e) { + if (user) { + group=$('#view-group').data('uuid'); + document.location=user.server+'/export2csv?email='+user.email+'&password='+user.password+'&group='+group; + } + else { + alert('Vous devez être connecté à un serveur pour cela !'); + } +} + on_nav_search_form_submit=function(e) { e.preventDefault(); } @@ -967,6 +977,7 @@ $( document ).ready( function() { $("#view-group-trash-contributors #go-back-group").bind('click',on_go_back_group_trash_contributors_btn_click); $('#categories_group_btn').bind('click',on_categories_group_btn_click); + $('#export_group_btn').bind('click',on_export_group_btn_click); $('#trash_group_btn').bind('click',on_trash_group_btn_click); $('#remove_group_btn').bind('click',on_remove_group_btn_click); $('#nav-search-form').bind('submit',on_nav_search_form_submit); diff --git a/index.html b/index.html index 7c5ad9a..17a1797 100644 --- a/index.html +++ b/index.html @@ -284,6 +284,7 @@ span.cat-color {