mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-19 09:24:51 +00:00
Update lib/client/viewer.js
This commit is contained in:
parent
89e9450a8d
commit
41af04d71f
1 changed files with 6 additions and 5 deletions
|
|
@ -96,16 +96,17 @@ CloudCommander.Viewer.FancyBox.set = (function(){
|
|||
var lImages = $('.fancybox');
|
||||
var lThis = this;
|
||||
|
||||
for(var i=0; i < lImages.length; i++){
|
||||
lImages[i].ondblclick = (function(){
|
||||
var lDblClick_f = function(pHref){
|
||||
return function(){
|
||||
var lConfig = lThis.getConfig();
|
||||
lConfig.href = lImages[i].href;
|
||||
lConfig.href = pHref;
|
||||
|
||||
$.fancybox(lConfig);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
for(var i=0; i < lImages.length; i++)
|
||||
lImages[i].ondblclick = lDblClick_f(lImages[i].pHref);
|
||||
}catch(pError){
|
||||
console.log(pError);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue