mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 18:18:56 +00:00
feature(dom) images show.load: top true -> "top"
This commit is contained in:
parent
b7e979dae4
commit
c5279d4896
11 changed files with 19 additions and 44 deletions
|
|
@ -54,9 +54,7 @@ var Util, DOM, CloudFunc, join;
|
|||
}
|
||||
|
||||
if (panelChanged || isRefresh)
|
||||
imgPosition = {
|
||||
top: true
|
||||
};
|
||||
imgPosition = 'top';
|
||||
|
||||
Images.show.load(imgPosition);
|
||||
|
||||
|
|
|
|||
|
|
@ -11,9 +11,7 @@ var CloudCmd, Util, DOM, io;
|
|||
Images = DOM.Images,
|
||||
Events = DOM.Events,
|
||||
showLoad = function() {
|
||||
Images.show.load({
|
||||
top: true
|
||||
});
|
||||
Images.show.load('top');
|
||||
},
|
||||
Element,
|
||||
INPUT = 'INPUT',
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ var CloudCmd, Util, DOM, olark;
|
|||
function load(callback) {
|
||||
var path = DIR + 'contact/olark.js';
|
||||
|
||||
Images.show.load({top: true});
|
||||
Images.show.load('top');
|
||||
|
||||
DOM.load.js(path, callback);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -438,7 +438,7 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
|
|||
name = file.name,
|
||||
path = dir + name;
|
||||
|
||||
Images.show.load({top: true});
|
||||
Images.show.load('top');
|
||||
Images.setProgress(0, name);
|
||||
|
||||
DOM.RESTful.write(path, file, callback);
|
||||
|
|
@ -1609,9 +1609,7 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
|
|||
if (name === '..') {
|
||||
Dialog.alert('No files selected!');
|
||||
} else {
|
||||
Images.show.load({
|
||||
top:true
|
||||
});
|
||||
Images.show.load('top');
|
||||
|
||||
if (!data)
|
||||
to = Dialog.prompt(msg, to);
|
||||
|
|
|
|||
|
|
@ -10,10 +10,7 @@ var CloudCmd, Util, DOM;
|
|||
Help = this;
|
||||
|
||||
function init() {
|
||||
Images.show.load({
|
||||
top: true
|
||||
});
|
||||
|
||||
Images.show.load('top');
|
||||
Help.show();
|
||||
}
|
||||
|
||||
|
|
@ -21,8 +18,8 @@ var CloudCmd, Util, DOM;
|
|||
CloudCmd
|
||||
.Markdown
|
||||
.show('/HELP.md', {
|
||||
topLoad : true,
|
||||
relative: true
|
||||
positionLoad : 'top',
|
||||
relative : true
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -288,7 +288,7 @@ var CloudCmd, Util, DOM;
|
|||
break;
|
||||
|
||||
case Key.TRA:
|
||||
DOM.Images.show.load({top: true});
|
||||
DOM.Images.show.load('top');
|
||||
|
||||
if (shift)
|
||||
obj = CloudCmd.Terminal;
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ var CloudCmd, Util, join, DOM, CloudFunc, Console;
|
|||
Konsole = this;
|
||||
|
||||
function init() {
|
||||
Images.show.load({top:true});
|
||||
Images.show.load('top');
|
||||
|
||||
Util.exec.series([
|
||||
DOM.loadJquery,
|
||||
|
|
|
|||
|
|
@ -12,9 +12,7 @@ var CloudCmd, Util, DOM;
|
|||
MD = this;
|
||||
|
||||
function init() {
|
||||
Images.show.load({
|
||||
top:true
|
||||
});
|
||||
Images.show.load('top');
|
||||
|
||||
Util.exec.series([
|
||||
CloudCmd.View,
|
||||
|
|
@ -23,24 +21,16 @@ var CloudCmd, Util, DOM;
|
|||
}
|
||||
|
||||
this.show = function(name, options) {
|
||||
var o = options,
|
||||
var o = options || optionsParam || {},
|
||||
relativeQuery = '?relative';
|
||||
|
||||
if (!name)
|
||||
name = nameParam;
|
||||
|
||||
if (!options)
|
||||
o =
|
||||
options = optionsParam;
|
||||
Images.show.load(o.positionLoad);
|
||||
|
||||
if (options) {
|
||||
Images.show.load({
|
||||
top: o.topLoad
|
||||
});
|
||||
|
||||
if (o.relative)
|
||||
name += relativeQuery;
|
||||
}
|
||||
if (o.relative)
|
||||
name += relativeQuery;
|
||||
|
||||
Markdown.read(name, function(result) {
|
||||
var div = DOM.load({
|
||||
|
|
|
|||
|
|
@ -217,9 +217,7 @@ var CloudCmd, Util, DOM, CloudFunc, MenuIO;
|
|||
}
|
||||
|
||||
function getFromPicker() {
|
||||
Images.show.load({
|
||||
top: true
|
||||
});
|
||||
Images.show.load('top');
|
||||
|
||||
CloudCmd.execFromModule('FilePicker', 'saveFile', function(name, data) {
|
||||
var path = DOM.getCurrentDirPath() + name;
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ var CloudCmd, Util, DOM, CloudFunc, Terminal, io;
|
|||
|
||||
function show(callback) {
|
||||
if (!Loading) {
|
||||
Images.show.load({top:true});
|
||||
Images.show.load('top');
|
||||
|
||||
if (!Element) {
|
||||
Element = DOM.load({
|
||||
|
|
|
|||
|
|
@ -12,9 +12,7 @@ var CloudCmd, Util, DOM;
|
|||
Upload = this;
|
||||
|
||||
function init() {
|
||||
Images.show.load({
|
||||
top: true
|
||||
});
|
||||
Images.show.load('top');
|
||||
|
||||
Util.exec.series([
|
||||
CloudCmd.View,
|
||||
|
|
@ -23,9 +21,7 @@ var CloudCmd, Util, DOM;
|
|||
}
|
||||
|
||||
this.show = function() {
|
||||
Images.show.load({
|
||||
top: true
|
||||
});
|
||||
Images.show.load('top');
|
||||
|
||||
Files.get('upload', function(error, data) {
|
||||
CloudCmd.View.show(data, {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue