Use boolean values for .prop() on boolean HTML attributes

.prop() expects a boolean value. .id() returns a boolean value.

Change-Id: If3dc6197f9dded92e99faeaa33e31dc937ebf66f
This commit is contained in:
Fomafix 2016-01-15 12:43:37 +00:00 committed by [[mw:User:Fomafix]]
parent 8280065442
commit 7d8b6a1ab6

View file

@ -116,11 +116,9 @@ $.wikiEditor.modules.publish = {
buttons: {
'wikieditor-publish-dialog-publish': function () {
var minorChecked = $( '#wikiEditor-' + context.instance +
'-dialog-minor' ).is( ':checked' ) ?
'checked' : '';
'-dialog-minor' ).is( ':checked' );
var watchChecked = $( '#wikiEditor-' + context.instance +
'-dialog-watch' ).is( ':checked' ) ?
'checked' : '';
'-dialog-watch' ).is( ':checked' );
$( '#wpMinoredit' ).prop( 'checked', minorChecked );
$( '#wpWatchthis' ).prop( 'checked', watchChecked );
$( '#wpSummary' ).val( $( '#wikiEditor-' + context.instance +