From b019036a2c7d8347ba2376081cdb1c2f08df29bd Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Mon, 14 Apr 2014 17:17:42 -0700 Subject: [PATCH] Hide inspectors using new method when saving Previous hack caused unwanted blur events and subsequent range changes. Depends on I8388318311 in core. Change-Id: I9163f4d9928887a5eec09f0651ec0a66cc221cd4 --- modules/ve-mw/init/targets/ve.init.mw.ViewPageTarget.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ve-mw/init/targets/ve.init.mw.ViewPageTarget.js b/modules/ve-mw/init/targets/ve.init.mw.ViewPageTarget.js index ee6fd250f0..dfa3509367 100644 --- a/modules/ve-mw/init/targets/ve.init.mw.ViewPageTarget.js +++ b/modules/ve-mw/init/targets/ve.init.mw.ViewPageTarget.js @@ -1142,8 +1142,8 @@ ve.init.mw.ViewPageTarget.prototype.setupSaveDialog = function () { * @fires saveWorkflowBegin */ ve.init.mw.ViewPageTarget.prototype.showSaveDialog = function () { - // Focus the surface to make sure any open inspectors are closed - this.surface.getView().focus(); + // Make sure any open inspectors are closed + this.surface.getContext().closeCurrentInspector(); // Preload the serialization if ( !this.docToSave ) {