Followup 67f304a: use .openWindow(), not .open(), to open save dialog

Calling .open() directly doesn't work any more.

Change-Id: I986ad063f7b83992a8f96969ccb5f7e08fb9f386
This commit is contained in:
Roan Kattouw 2014-08-21 12:00:40 -07:00
parent 0af7c2d634
commit e33bcb02cc

View file

@ -1227,8 +1227,8 @@ ve.init.mw.ViewPageTarget.prototype.showSaveDialog = function () {
}
this.saveDialog.setSanityCheck( this.sanityCheckVerified );
this.saveDialog.open(
this.surface.getModel().getFragment(),
this.surface.getDialogs().openWindow(
this.saveDialog,
{ 'dir': this.surface.getModel().getDocument().getLang() }
)
// Call onSaveDialogClose() when the save dialog starts closing