mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-21 02:29:23 +00:00
from not jsload, cssload and anyload suport arrays
This commit is contained in:
parent
057d67fadf
commit
4ebc607478
3 changed files with 67 additions and 41 deletions
|
|
@ -31,13 +31,11 @@ CloudCommander.Editor.CodeMirror.load = (function(pParent){
|
|||
*/
|
||||
var loadAll = function(pParent) {
|
||||
return function(){
|
||||
pParent.cssLoad({
|
||||
src : 'lib/client/editor/codemirror/pack/codemirror.pack.css'
|
||||
});
|
||||
pParent.cssLoad([
|
||||
{ src : 'lib/client/editor/codemirror/pack/codemirror.pack.css'},
|
||||
{ src : 'lib/client/editor/codemirror/pack/night.pack.css'}
|
||||
]);
|
||||
|
||||
pParent.cssLoad({
|
||||
src : 'lib/client/editor/codemirror/pack/night.pack.css'
|
||||
});
|
||||
|
||||
pParent.cssSet({id:'editor',
|
||||
inner : '.CodeMirror{' +
|
||||
|
|
@ -134,6 +132,10 @@ CloudCommander.Editor.CodeMirror.show = (function(){
|
|||
}
|
||||
|
||||
this.loading = true;
|
||||
setTimeout(function(){
|
||||
lParent.loading = false;},
|
||||
400);
|
||||
|
||||
/* reading data from current file */
|
||||
$.ajax({
|
||||
url:lA,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue