mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-24 03:05:41 +00:00
moved editor loading functoin to editor function
This commit is contained in:
parent
12752900f3
commit
fa8e4ce047
1 changed files with 12 additions and 9 deletions
21
client.js
21
client.js
|
|
@ -17,6 +17,7 @@ var CloudClient={
|
|||
init :function(){},
|
||||
|
||||
keyBinding :function(){},/* функция нажатий обработки клавишь */
|
||||
Editor :function(){},/* function loads and shows editor */
|
||||
keyBinded :false,/* оброботка нажатий клавишь установлена*/
|
||||
_loadDir :function(){},
|
||||
/*
|
||||
|
|
@ -137,7 +138,15 @@ CloudClient.keyBinding=(function(){
|
|||
});
|
||||
});
|
||||
|
||||
|
||||
/* function loads and shows editor */
|
||||
CloudClient.Editor = (function(){
|
||||
/* loading CloudMirror plagin */
|
||||
CloudClient.jsload(CloudClient.LIBDIRCLIENT + 'editor.js',{
|
||||
onload:(function(){
|
||||
CloudCommander.Editor.Keys();
|
||||
})
|
||||
});
|
||||
}
|
||||
/*
|
||||
* Функция привязываеться ко всем ссылкам и
|
||||
* загружает содержимое каталогов
|
||||
|
|
@ -356,14 +365,7 @@ CloudClient.init=(function()
|
|||
element:document.head,
|
||||
inner:'#left{width:46%;}' +
|
||||
'.panel{height:' + lHeight +'px'
|
||||
});
|
||||
|
||||
/* loading CloudMirror plagin */
|
||||
CloudClient.jsload(CloudClient.LIBDIRCLIENT + 'editor.js',{
|
||||
onload:(function(){
|
||||
CloudCommander.Editor.Keys();
|
||||
})
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
/* функция меняет ссыки на ajax-овые */
|
||||
|
|
@ -748,6 +750,7 @@ try{
|
|||
CloudCommander.init();
|
||||
/* привязываем клавиши к функциям */
|
||||
CloudCommander.keyBinding();
|
||||
CloudCommander.Editor();
|
||||
};
|
||||
}
|
||||
catch(err){}
|
||||
Loading…
Add table
Add a link
Reference in a new issue