mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 00:30:44 +00:00
mw.ViewPageTarget: Clear slide history when closing the save dialog
Bug: 49481 Change-Id: I297a7d1458e5a1c33b9dcb85272fe5f40893dd88
This commit is contained in:
parent
b48ff35827
commit
947da63502
|
@ -1409,10 +1409,10 @@ ve.init.mw.ViewPageTarget.prototype.onResizeSaveDialog = function () {
|
|||
|
||||
/**
|
||||
* Hide the save dialog
|
||||
*
|
||||
* @method
|
||||
*/
|
||||
ve.init.mw.ViewPageTarget.prototype.hideSaveDialog = function () {
|
||||
// Reset history on close (bug 49481)
|
||||
this.saveDialogSlideHistory.length = 0;
|
||||
this.$saveDialog.fadeOut( 'fast' );
|
||||
if ( this.$document ) {
|
||||
this.$document.focus();
|
||||
|
|
Loading…
Reference in a new issue