WordPress.org

Making WordPress.org

Changeset 38


Ignore:
Timestamp:
06/05/2013 03:24:02 PM (5 years ago)
Author:
nacin
Message:

Trac:

  • jQuery: Use prop() instead of attr()
  • Make system messages a bit less ugly
Location:
sites/trunk/wordpress.org/public_html/style/trac
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/style/trac/wp-trac.css

    r37 r38  
    523523    box-shadow: none;
    524524}
    525 span.system-message {
    526     border-radius: 3px;
    527 }
     525span.system-message,
    528526div.system-message {
    529527    border-radius: 3px;
     528    box-shadow: none;
     529}
     530#warning.system-message,
     531.warning.system-message {
     532    border-color: #333;
     533    color: 3333;
    530534}
    531535div.system-message .trac-close-msg {
  • sites/trunk/wordpress.org/public_html/style/trac/wp-trac.js

    r24 r38  
    6464            // Clear the milestone on wontfix, duplicate, worksforme, invalid
    6565            wpTrac.field.milestone = $('#field-milestone');
    66             if ( ! wpTrac.field.milestone.attr('disabled') ) {
     66            if ( ! wpTrac.field.milestone.prop('disabled') ) {
    6767                $('#propertyform').submit( function() {
    6868                    var action = $('input[name=action]:checked').val();
     
    226226            // Update the dropdown. Core keywords also get a title attribute with their description.
    227227            if ( keyword in coreKeywordList ) {
    228                 wpTrac.field.add.find('option[value=' + keyword + ']').attr('disabled', 'disabled').text('* ' + keyword);
     228                wpTrac.field.add.find('option[value=' + keyword + ']').prop('disabled', true).text('* ' + keyword);
    229229                title = coreKeywordList[keyword];
    230230            }
     
    260260            // Update the core keyword dropdown.
    261261            if ( keyword in coreKeywordList )
    262                 wpTrac.field.add.find('option[value=' + keyword + ']').attr('disabled', '').text( keyword );
     262                wpTrac.field.add.find('option[value=' + keyword + ']').prop('disabled', false).text( keyword );
    263263            wpTrac.hiddenEl.val( wpTrac.keywords.join(' ') );
    264264            object.remove();
Note: See TracChangeset for help on using the changeset viewer.