mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 00:47:01 +00:00
fixed bug with multiple click events on f3 and f4 buttons
This commit is contained in:
parent
b3b1846c59
commit
3dfaa5bdb5
4 changed files with 10 additions and 5 deletions
|
|
@ -15,6 +15,8 @@ and get them out to file system.
|
|||
|
||||
* jquery updated to v1.9.1.
|
||||
|
||||
* Fixed bug with multiple click events on f3 and f4 buttons.
|
||||
|
||||
|
||||
2012.03.01, Version 0.1.9
|
||||
|
||||
|
|
|
|||
|
|
@ -294,8 +294,10 @@ function initKeysPanel(pCallBack){
|
|||
for(var i = 1; i <= 8; i++){
|
||||
var lButton = 'f' + i,
|
||||
lEl = DOM.getById('f' + i);
|
||||
|
||||
DOM.addClickListener(lFuncs[i], lEl);
|
||||
if( i === 3 || i === 4)
|
||||
DOM.addOneTimeListener('click', lFuncs[i], lEl);
|
||||
else
|
||||
DOM.addClickListener(lFuncs[i], lEl);
|
||||
lKeysPanel[lButton] = lEl;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -894,7 +894,8 @@ var CloudCommander, Util,
|
|||
DOM.hide(lLoadingImage);
|
||||
|
||||
Util.log(lText);
|
||||
alert(lText);
|
||||
|
||||
setTimeout( Util.retExec(alert, lText), 100);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -147,8 +147,8 @@ var CloudCommander, Util, DOM, CloudFunc, $;
|
|||
};
|
||||
|
||||
/* добавляем обработчик клавишь */
|
||||
DOM.addKeyListener(lKeyListener);
|
||||
//.setButtonKey('f3', lView);
|
||||
DOM.addKeyListener(lKeyListener)
|
||||
.setButtonKey('f3', lView);
|
||||
};
|
||||
|
||||
CloudCmd.Viewer.FancyBox = FancyBox;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue