Merge "Use .prop() instead of .attr()/.removeAttr() to set boolean attributes"

This commit is contained in:
jenkins-bot
2016-02-12 15:14:12 +00:00
committed by Gerrit Code Review
2 changed files with 4 additions and 4 deletions

View File

@@ -511,7 +511,7 @@
*/ */
markDirty: function () { markDirty: function () {
this.dirty = true; this.dirty = true;
this.$parent.$window.find( 'button.uls-settings-apply' ).removeAttr( 'disabled' ); this.$parent.$window.find( 'button.uls-settings-apply' ).prop( 'disabled', false );
}, },
/** /**

View File

@@ -175,9 +175,9 @@
$inputMethodItem = $( '<input type="radio">' ).attr( { $inputMethodItem = $( '<input type="radio">' ).attr( {
name: 'ime', name: 'ime',
id: imeId, id: imeId,
value: imeId, value: imeId
checked: selected } )
} ); .prop( 'checked', selected );
$imeLabel.append( $inputMethodItem ); $imeLabel.append( $inputMethodItem );