From 2917bf9fdaaed2285d30f00651dff43b8ffbd63d Mon Sep 17 00:00:00 2001 From: coderaiser Date: Mon, 26 Dec 2016 12:07:19 +0200 Subject: [PATCH] chore(edit) rm " " --- client/edit.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client/edit.js b/client/edit.js index 481b10b3..cf15398d 100644 --- a/client/edit.js +++ b/client/edit.js @@ -1,9 +1,10 @@ var CloudCmd, Util, DOM, CloudFunc, MenuIO, Format; + (function(CloudCmd, Util, DOM) { 'use strict'; CloudCmd.Edit = EditProto; - + function EditProto(callback) { var Name = 'Edit', Loading = true, @@ -241,13 +242,12 @@ var CloudCmd, Util, DOM, CloudFunc, MenuIO, Format; function setMsgChanged(name) { var msg = 'Do you want to save changes to ' + name + '?'; - MSG_CHANGED = msg; } function isChanged() { - var is = editor.isChanged(); - + var is = editor.isChanged(); + is && Dialog.confirm(TITLE, MSG_CHANGED, {cancel: false}) .then(function() { editor.save();