mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiEditor
synced 2024-11-24 16:26:39 +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();
|
||||
});
|
||||
},
|
||||
immediateCreate: true,
|
||||
dialog: {
|
||||
buttons: {
|
||||
'wikieditor-publish-dialog-publish': function () {
|
||||
|
@ -144,7 +145,10 @@ fn: {
|
|||
|
||||
context.fn.addButton( {
|
||||
'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