Merge "(bug 42198) fix ext.wikiEditor.publish so that it actually works"

This commit is contained in:
jenkins-bot 2013-01-30 11:46:10 +00:00 committed by Gerrit Code Review
commit 85237ff3f8

View file

@ -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;
}
} );
}
}