mw.ViewPageTarget: Clear slide history when closing the save dialog

Bug: 49481
Change-Id: I297a7d1458e5a1c33b9dcb85272fe5f40893dd88
This commit is contained in:
Timo Tijhof 2013-06-23 17:35:04 -07:00
parent b48ff35827
commit 947da63502

View file

@ -1409,10 +1409,10 @@ ve.init.mw.ViewPageTarget.prototype.onResizeSaveDialog = function () {
/** /**
* Hide the save dialog * Hide the save dialog
*
* @method
*/ */
ve.init.mw.ViewPageTarget.prototype.hideSaveDialog = function () { ve.init.mw.ViewPageTarget.prototype.hideSaveDialog = function () {
// Reset history on close (bug 49481)
this.saveDialogSlideHistory.length = 0;
this.$saveDialog.fadeOut( 'fast' ); this.$saveDialog.fadeOut( 'fast' );
if ( this.$document ) { if ( this.$document ) {
this.$document.focus(); this.$document.focus();