mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
fixed bug with keybinding in FireFox
This commit is contained in:
parent
5f7eba4fee
commit
2c0b3a366e
2 changed files with 9 additions and 10 deletions
|
|
@ -46,6 +46,9 @@ Keys was unbinded.
|
|||
(used document.location.href, now using
|
||||
document.location.origin)
|
||||
|
||||
* Fixed bug with keybinding in FireFox
|
||||
(removed KeyBinding call on window load).
|
||||
|
||||
|
||||
2012.10.01, Version 0.1.7
|
||||
|
||||
|
|
|
|||
16
client.js
16
client.js
|
|
@ -1232,7 +1232,6 @@ CloudClient._currentToParent = function(pDirName){
|
|||
*/
|
||||
CloudClient.init = function(){
|
||||
Util = cloudcmd.Util;
|
||||
KeyBinding = cloudcmd.KeyBinding;
|
||||
getByClass = Util.getByClass;
|
||||
getById = Util.getById;
|
||||
|
||||
|
|
@ -1252,22 +1251,21 @@ CloudClient.init = function(){
|
|||
function initModules(){
|
||||
|
||||
loadModule({
|
||||
/* привязываем клавиши к функциям */
|
||||
path : 'keyBinding.js',
|
||||
func : function(){
|
||||
KeyBinding = cloudcmd.KeyBinding;
|
||||
func : function(){
|
||||
KeyBinding = cloudcmd.KeyBinding;
|
||||
KeyBinding.init();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Util.ajax({
|
||||
url:'/modules.json',
|
||||
success: function(pModules){
|
||||
if( Util.isArray(pModules) )
|
||||
for(var i = 0, n = pModules.length; i < n ; i++)
|
||||
loadModule(pModules[i]);
|
||||
},
|
||||
|
||||
error: baseInit
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -1341,6 +1339,7 @@ function baseInit(){
|
|||
});
|
||||
|
||||
initModules();
|
||||
cloudcmd.KeyBinding();
|
||||
}
|
||||
|
||||
/* функция меняет ссыки на ajax-овые */
|
||||
|
|
@ -1691,9 +1690,6 @@ try{
|
|||
/* базовая инициализация*/
|
||||
CloudCommander.init();
|
||||
|
||||
/* привязываем клавиши к функциям */
|
||||
CloudCommander.KeyBinding();
|
||||
|
||||
/* загружаем Google Analytics */
|
||||
CloudCommander.GoogleAnalytics();
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue