mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
feature(listeners) ListenersProto: add Info
This commit is contained in:
parent
a96067a198
commit
e39ca3e866
1 changed files with 4 additions and 3 deletions
|
|
@ -6,7 +6,8 @@ var Util, DOM, CloudCmd;
|
|||
CloudCmd.Listeners = new ListenersProto(CloudCmd, Util, DOM);
|
||||
|
||||
function ListenersProto(CloudCmd, Util, DOM){
|
||||
var Storage = DOM.Storage,
|
||||
var Info = DOM.CurrentInfo,
|
||||
Storage = DOM.Storage,
|
||||
Events = DOM.Events,
|
||||
getConfig = CloudCmd.getConfig;
|
||||
|
||||
|
|
@ -132,7 +133,7 @@ var Util, DOM, CloudCmd;
|
|||
lOnDragStart_f = function(pEvent) {
|
||||
var lElement = pEvent.target,
|
||||
EXT = 'json',
|
||||
isDir = DOM.isCurrentIsDir(),
|
||||
isDir = Info.isDir,
|
||||
lLink = lElement.href,
|
||||
lName = lElement.textContent;
|
||||
|
||||
|
|
@ -239,7 +240,7 @@ var Util, DOM, CloudCmd;
|
|||
},
|
||||
onDrop = function (event) {
|
||||
var reader, file, files,
|
||||
dir = DOM.getCurrentDirPath(),
|
||||
dir = Info.dirPath,
|
||||
load = function(file){
|
||||
return function(event) {
|
||||
var path = dir + file.name,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue