minor changes

This commit is contained in:
coderaiser 2012-07-25 07:23:37 -04:00
parent 0d7038a150
commit dc119a3b27
3 changed files with 18 additions and 5 deletions

View file

@ -18,6 +18,7 @@ var CloudClient={
keyBinding :function(){},/* функция нажатий обработки клавишь */
Editor :function(){},/* function loads and shows editor */
Viewer :function(){},/* function loads and shows viewer */
keyBinded :false,/* оброботка нажатий клавишь установлена*/
_loadDir :function(){},
/*
@ -151,6 +152,14 @@ CloudClient.Editor = (function(){
})
});
});
/* function loads and shows viewer */
CloudClient.Viewer = (function(){
CloudCommander.jsload('lib/client/viewer.js',
function(){
CloudCommander.Viewer.Keys();
});
});
/*
* Функция привязываеться ко всем ссылкам и
* загружает содержимое каталогов
@ -787,6 +796,7 @@ try{
/* привязываем клавиши к функциям */
CloudCommander.keyBinding();
CloudCommander.Editor();
CloudCommander.Viewer();
};
}
catch(err){}

View file

@ -65,7 +65,8 @@ exports.Cache={
*/
exports.Minify={
/* pathes to directories */
INDEX :'index.html',
INDEX :'index.html',
LIBDIRCLIENT : './lib/client',
/* приватный переключатель минимизации */
_allowed :{css:true,js:true,html:true, img: true},
@ -134,6 +135,7 @@ exports.Minify={
' changed. size:',
(pFinalCode = pFinalCode
.replace('editor.js','editor.min.js')
.replace('viewer.js','viewer.min.js')
.replace('cloudfunc.js','cloudfunc.min.js')
.replace('keyBinding.js','keyBinding.min.js')
.replace('/lib/', lMinFolder)
@ -147,9 +149,10 @@ exports.Minify={
if (this._allowed.js) {
lOptimizeParams=[{
'client.js': lPostProcessing_f},
'lib/cloudfunc.js',
'lib/client/keyBinding.js',
'lib/client/editor.js'];
this.LIBDIRCLIENT + '/cloudfunc.js',
this.LIBDIRCLIENT + '/keyBinding.js',
this.LIBDIRCLIENT + '/editor.js',
this.LIBDIRCLIENT + '/viewer.js'];
}
if (this._allowed.html)

View file

@ -66,7 +66,7 @@ var CloudServer = {
/* КОНСТАНТЫ */
INDEX : 'index.html',
LIBDIR : './lib',
LIBDIRSERVER : './lib/server'
LIBDIRSERVER : './lib/server'
};
var DirPath = '/';