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
This commit is contained in:
Ed Sanders 2014-04-14 17:17:42 -07:00
parent 3bba5e4d3b
commit b019036a2c

View file

@ -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 ) {