mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiEditor
synced 2024-12-01 03:17:04 +00:00
Merge "(bug 42198) fix ext.wikiEditor.publish so that it actually works"
This commit is contained in:
commit
85237ff3f8
|
@ -105,6 +105,7 @@ fn: {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
immediateCreate: true,
|
||||||
dialog: {
|
dialog: {
|
||||||
buttons: {
|
buttons: {
|
||||||
'wikieditor-publish-dialog-publish': function () {
|
'wikieditor-publish-dialog-publish': function () {
|
||||||
|
@ -144,7 +145,10 @@ fn: {
|
||||||
|
|
||||||
context.fn.addButton( {
|
context.fn.addButton( {
|
||||||
'captionMsg': 'wikieditor-publish-button-cancel',
|
'captionMsg': 'wikieditor-publish-button-cancel',
|
||||||
'action': function () { }
|
'action': function () {
|
||||||
|
window.location.href = $( '#mw-editform-cancel' ).attr( 'href' );
|
||||||
|
return false;
|
||||||
|
}
|
||||||
} );
|
} );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue