mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiEditor
synced 2024-09-23 18:31:07 +00:00
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:
parent
8280065442
commit
7d8b6a1ab6
|
@ -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 +
|
||||
|
|
Loading…
Reference in a new issue