mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-28 18:23:35 +00:00
feature(edit) rm setValueFirst, goToLine
This commit is contained in:
parent
26a3769220
commit
22e3e6c50c
1 changed files with 8 additions and 14 deletions
|
|
@ -80,7 +80,7 @@ var CloudCmd, Util, DOM, CloudFunc, MenuIO, edward;
|
|||
if (error) {
|
||||
alert(error);
|
||||
} else {
|
||||
Edit.setValueFirst(path, data);
|
||||
edward.setValueFirst(path, data);
|
||||
CloudCmd.View.show(Element, ConfigView);
|
||||
}
|
||||
});
|
||||
|
|
@ -88,18 +88,10 @@ var CloudCmd, Util, DOM, CloudFunc, MenuIO, edward;
|
|||
return this;
|
||||
};
|
||||
|
||||
this.setValueFirst = function(path, value) {
|
||||
edward.setValueFirst(path, value);
|
||||
};
|
||||
|
||||
this.hide = function() {
|
||||
CloudCmd.View.hide();
|
||||
};
|
||||
|
||||
this.goToLine = function() {
|
||||
edward.goToLine();
|
||||
};
|
||||
|
||||
this.create = function(element) {
|
||||
Element = element;
|
||||
|
||||
|
|
@ -188,10 +180,10 @@ var CloudCmd, Util, DOM, CloudFunc, MenuIO, edward;
|
|||
},
|
||||
menuData = {
|
||||
'Save Ctrl+S' : function() {
|
||||
CloudCmd.Edit.save();
|
||||
edward.save();
|
||||
},
|
||||
'Go To Line Ctrl+G' : function() {
|
||||
CloudCmd.Edit.goToLine();
|
||||
edward.goToLine();
|
||||
},
|
||||
'Select All Ctrl+A' : function() {
|
||||
edward.selectAll();
|
||||
|
|
@ -200,12 +192,14 @@ var CloudCmd, Util, DOM, CloudFunc, MenuIO, edward;
|
|||
edward.remove('right');
|
||||
},
|
||||
'Beautify Ctrl+B' : function() {
|
||||
CloudCmd.Edit.beautify();
|
||||
edward.beautify();
|
||||
},
|
||||
'Minify Ctrl+M' : function() {
|
||||
CloudCmd.Edit.minify();
|
||||
edward.minify();
|
||||
},
|
||||
'Close Esc' : CloudCmd.Edit.hide
|
||||
'Close Esc' : function() {
|
||||
Edit.hide();
|
||||
}
|
||||
};
|
||||
|
||||
if (error) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue