diff options
author | plegall <plg@piwigo.org> | 2013-10-28 19:18:45 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2013-10-28 19:18:45 +0000 |
commit | 6d73f88a51728a4e39b25f9da2e104d5ed5c4953 (patch) | |
tree | 7198935988b710434fd4b7677d071fc6dabd4257 /admin/themes/default/template/user_list.tpl | |
parent | 8d6970624c2b6c806d3fd9cc5de7126829219496 (diff) |
feature 1668: implement all remaining actions (all using the new version of pwg.users.setInfo with multiple user_id)
git-svn-id: http://piwigo.org/svn/trunk@25198 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/themes/default/template/user_list.tpl')
-rw-r--r-- | admin/themes/default/template/user_list.tpl | 43 |
1 files changed, 38 insertions, 5 deletions
diff --git a/admin/themes/default/template/user_list.tpl b/admin/themes/default/template/user_list.tpl index 911bfc978..11a97c29d 100644 --- a/admin/themes/default/template/user_list.tpl +++ b/admin/themes/default/template/user_list.tpl @@ -166,7 +166,7 @@ jQuery(document).ready(function() { jQuery("#applyAction").click(function() { var action = jQuery("select[name=selectAction]").prop("value"); - var method = null; + var method = 'pwg.users.setInfo'; var data = { user_id: selection }; @@ -187,6 +187,39 @@ jQuery(document).ready(function() { method = 'pwg.groups.deleteUser'; data.group_id = jQuery("select[name=dissociate]").prop("value"); break; + case 'status': + data.status = jQuery("select[name=status]").prop("value"); + break; + case 'enabled_high': + data.enabled_high = jQuery("input[name=enabled_high]:checked").val(); + break; + case 'level': + data.level = jQuery("select[name=level]").val(); + break; + case 'nb_image_page': + data.nb_image_page = jQuery("input[name=nb_image_page]").val(); + break; + case 'theme': + data.theme = jQuery("select[name=theme]").val(); + break; + case 'language': + data.language = jQuery("select[name=language]").val(); + break; + case 'recent_period': + data.recent_period = jQuery("input[name=recent_period]").val(); + break; + case 'expand': + data.expand = jQuery("input[name=expand]:checked").val(); + break; + case 'show_nb_comments': + data.show_nb_comments = jQuery("input[name=show_nb_comments]:checked").val(); + break; + case 'show_nb_hits': + data.show_nb_hits = jQuery("input[name=show_nb_hits]:checked").val(); + break; + default: + alert("Unexpected action"); + return false; } jQuery.ajax({ @@ -331,7 +364,7 @@ table.dataTable {clear:right;padding-top:10px;} {* enabled_high *} <div id="action_enabled_high" class="bulkAction"> <label><input type="radio" name="enabled_high" value="true">{'Yes'|@translate}</label> - <label><input type="radio" name="enabled_high" value="false">{'No'|@translate}</label> + <label><input type="radio" name="enabled_high" value="false" checked="checked">{'No'|@translate}</label> </div> {* level *} @@ -368,19 +401,19 @@ table.dataTable {clear:right;padding-top:10px;} {* expand *} <div id="action_expand" class="bulkAction"> <label><input type="radio" name="expand" value="true">{'Yes'|@translate}</label> - <label><input type="radio" name="expand" value="false">{'No'|@translate}</label> + <label><input type="radio" name="expand" value="false" checked="checked">{'No'|@translate}</label> </div> {* show_nb_comments *} <div id="action_show_nb_comments" class="bulkAction"> <label><input type="radio" name="show_nb_comments" value="true">{'Yes'|@translate}</label> - <label><input type="radio" name="show_nb_comments" value="false">{'No'|@translate}</label> + <label><input type="radio" name="show_nb_comments" value="false" checked="checked">{'No'|@translate}</label> </div> {* show_nb_hits *} <div id="action_show_nb_hits" class="bulkAction"> <label><input type="radio" name="show_nb_hits" value="true">{'Yes'|@translate}</label> - <label><input type="radio" name="show_nb_hits" value="false">{'No'|@translate}</label> + <label><input type="radio" name="show_nb_hits" value="false" checked="checked">{'No'|@translate}</label> </div> <p id="applyActionBlock" style="display:none" class="actionButtons"> |