Plugin Directory

Changeset 591087


Ignore:
Timestamp:
08/27/2012 07:24:19 PM (13 years ago)
Author:
jascott
Message:

Bugfix: Empty user roles no longer disappear on save

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kickpress/trunk/kickpress-capabilities.php

    r583190 r591087  
    271271                th.text(' ' + role + ' ');
    272272           
    273             var img = $('<img src="../wp-content/plugins/kickpress/includes/images/icons/time.png">');
    274                 img.attr('title', 'Pending Save');
    275                 img.addClass('pending-save');
    276            
    277             $('.cap-group thead tr').append(th.append(img));
     273            var img = $('<img>', {
     274                'src': '../wp-content/plugins/kickpress/includes/images/icons/time.png',
     275                'title': 'Pending Save',
     276                'class': 'pending-save'
     277            });
     278           
     279            var input = $('<input>', {
     280                'type': 'hidden',
     281                'name': 'roles[' + role + '][]'
     282            });
     283           
     284            $('.cap-group thead tr').append(th.append(img).append(input));
    278285           
    279286            $('.cap-group tbody tr').each(function(index, element) {
Note: See TracChangeset for help on using the changeset viewer.