mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
feature(edit) add setValue
This commit is contained in:
parent
978b79f38a
commit
9da829723d
1 changed files with 16 additions and 7 deletions
|
|
@ -94,18 +94,27 @@ var CloudCmd, Util, DOM, CloudFunc, MenuIO, Format;
|
|||
if (error)
|
||||
return Images.hide();
|
||||
|
||||
editor.setValueFirst(path, data);
|
||||
|
||||
setMsgChanged(name);
|
||||
|
||||
editor
|
||||
.setModeForPath(name)
|
||||
.setOption('fontSize', 16);
|
||||
Edit.setValue(data, {
|
||||
name: name,
|
||||
path: path
|
||||
});
|
||||
|
||||
CloudCmd.View.show(Element, ConfigView);
|
||||
});
|
||||
};
|
||||
|
||||
this.setValue = function(value, info) {
|
||||
var path = info.path;
|
||||
var name = info.name;
|
||||
|
||||
editor
|
||||
.setValueFirst(path, value)
|
||||
.setModeForPath(name)
|
||||
.setOption('fontSize', 16);
|
||||
|
||||
setMsgChanged(name);
|
||||
};
|
||||
|
||||
this.hide = function() {
|
||||
CloudCmd.View.hide();
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue