fixed bug with multiple click events on f3 and f4 buttons

This commit is contained in:
coderaiser 2013-03-04 08:06:08 -05:00
parent b3b1846c59
commit 3dfaa5bdb5
4 changed files with 10 additions and 5 deletions

View file

@ -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

View file

@ -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;
}

View file

@ -894,7 +894,8 @@ var CloudCommander, Util,
DOM.hide(lLoadingImage);
Util.log(lText);
alert(lText);
setTimeout( Util.retExec(alert, lText), 100);
}
};

View file

@ -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;