diff --git a/lib/client/editor.js b/lib/client/editor.js index 7cf04a48..dd16bfaf 100644 --- a/lib/client/editor.js +++ b/lib/client/editor.js @@ -40,13 +40,11 @@ CloudCommander.Editor.CodeMirror = { var loadAll = function(pParent) { return function(){ CloudCommander.cssLoad({ - src : 'http://codemirror.net/lib/codemirror.css', - element : document.head + src : 'http://codemirror.net/lib/codemirror.css' }); CloudCommander.cssLoad({ - src : 'http://codemirror.net/theme/night.css', - element : document.head + src : 'http://codemirror.net/theme/night.css' }); CloudCommander.cssSet({id:'editor', diff --git a/lib/client/viewer.js b/lib/client/viewer.js new file mode 100644 index 00000000..fa2d4e1d --- /dev/null +++ b/lib/client/viewer.js @@ -0,0 +1,15 @@ +var CloudCommander, FuncyBox; +/* object contains viewer FuncyBox + * https://github.com/fancyapps/fancyBox + */ +CloudCommander.Viewer = {}; +CloudCommander.Viewer.FuncyBox = { + load: function(){ + + CloudCommander.cssLoad({ + src : 'http://fancyapps.com/fancybox/source/jquery.fancybox.css' + }); + + CloudCommander.jsload('http://fancyapps.com/fancybox/source/jquery.fancybox.pack.js'); + } +}; \ No newline at end of file