mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
chore(edit) rm " "
This commit is contained in:
parent
2abb1097e3
commit
2917bf9fda
1 changed files with 4 additions and 4 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue