Use .prop() instead of .attr()/.removeAttr() to set boolean attributes
Change-Id: I4988316b202c19f851f2c05e3d07acc8c5ea38cf
This commit is contained in:
committed by
[[mw:User:Fomafix]]
parent
ce3f9e5358
commit
bd44ae4888
@@ -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 );
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -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 );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user