diff options
author | plegall <plg@piwigo.org> | 2013-11-11 10:03:08 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2013-11-11 10:03:08 +0000 |
commit | e48388d49e19c5cd8ddcbc53ca88281fd58f35ed (patch) | |
tree | dd4413c38b07b38a38f8900c8a772b9f7a589a0e /admin/themes/default/template | |
parent | 0bcb324e56e3543ec22fe35b851bec1ffaf04e8f (diff) |
feature 1668: add a <form> to avoid confusing input[type=radio] (enabled_high, show_nb_hits...) between users.
git-svn-id: http://piwigo.org/svn/trunk@25445 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | admin/themes/default/template/user_list.tpl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/admin/themes/default/template/user_list.tpl b/admin/themes/default/template/user_list.tpl index 6efd63daf..630f86573 100644 --- a/admin/themes/default/template/user_list.tpl +++ b/admin/themes/default/template/user_list.tpl @@ -104,7 +104,8 @@ jQuery(document).ready(function() { if (data.stat == 'ok') { var user = data.result.users[0]; - var userDetails = '<input type="hidden" name="user_id" value="'+user.id+'">'; + var userDetails = '<form>'; + userDetails += '<input type="hidden" name="user_id" value="'+user.id+'">'; userDetails += '<fieldset><legend>{/literal}{'Properties'|translate}{literal}</legend>'; userDetails += '<div class="userProperty"><strong>{/literal}{'Username'|translate}{literal}</strong>'; userDetails += '<br>'+user.username+'</div>'; @@ -225,6 +226,7 @@ jQuery(document).ready(function() { userDetails += '<input type="submit" value="{/literal}{'Submit'|translate}{literal}" data-user_id="'+userId+'">'; userDetails += '<img class="submitWait" src="themes/default/images/ajax-loader-small.gif" style="display:none">' + userDetails += '</form>'; jQuery("#user"+userId).append(userDetails); } @@ -246,7 +248,7 @@ jQuery(document).ready(function() { jQuery.ajax({ url: "ws.php?format=json&method=pwg.users.setInfo", type:"POST", - data: jQuery('#user'+userId).find('select, input').serialize(), + data: jQuery('#user'+userId+' form').serialize(), beforeSend: function() { jQuery('#user'+userId+' .submitWait').show(); }, |