Changeset 25445


Ignore:
Timestamp:
11/11/13 11:03:08 (6 years ago)
Author:
plg
Message:

feature 1668: add a <form> to avoid confusing input[type=radio] (enabled_high, show_nb_hits...) between users.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/themes/default/template/user_list.tpl

    r25405 r25445  
    105105          var user = data.result.users[0]; 
    106106 
    107           var userDetails = '<input type="hidden" name="user_id" value="'+user.id+'">'; 
     107          var userDetails = '<form>'; 
     108          userDetails += '<input type="hidden" name="user_id" value="'+user.id+'">'; 
    108109          userDetails += '<fieldset><legend>{/literal}{'Properties'|translate}{literal}</legend>'; 
    109110          userDetails += '<div class="userProperty"><strong>{/literal}{'Username'|translate}{literal}</strong>'; 
     
    226227          userDetails += '<input type="submit" value="{/literal}{'Submit'|translate}{literal}" data-user_id="'+userId+'">'; 
    227228          userDetails += '<img class="submitWait" src="themes/default/images/ajax-loader-small.gif" style="display:none">' 
     229          userDetails += '</form>'; 
    228230 
    229231          jQuery("#user"+userId).append(userDetails); 
     
    247249      url: "ws.php?format=json&method=pwg.users.setInfo", 
    248250      type:"POST", 
    249       data: jQuery('#user'+userId).find('select, input').serialize(), 
     251      data: jQuery('#user'+userId+' form').serialize(), 
    250252      beforeSend: function() { 
    251253        jQuery('#user'+userId+' .submitWait').show(); 
Note: See TracChangeset for help on using the changeset viewer.