mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 17:05:17 +00:00
Update lib/client/viewer.js
This commit is contained in:
parent
8fba06f304
commit
5dac88617d
1 changed files with 20 additions and 6 deletions
|
|
@ -85,12 +85,26 @@ CloudCommander.Viewer.FancyBox.set = (function(){
|
|||
}
|
||||
|
||||
/* $('.fancybox').fancybox(this.getConfig()); */
|
||||
var lThis = this;
|
||||
$('.fancybox').dblclick( function(){
|
||||
var lConfig = lThis.getConfig();
|
||||
lConfig.href = this.href;
|
||||
$.fancybox(lConfig)
|
||||
});
|
||||
/*
|
||||
var lThis = this;
|
||||
$('.fancybox').dblclick( function(){
|
||||
var lConfig = lThis.getConfig();
|
||||
lConfig.href = this.href;
|
||||
$.fancybox(lConfig)
|
||||
});
|
||||
$(Images[i]).data("events").dblclick[0].handler
|
||||
*/
|
||||
var lImages = $('.fancybox');
|
||||
|
||||
var lConfig = lThis.getConfig();
|
||||
for(var i=0; i < lImages.length; i++){
|
||||
lConfig.href = lImages[i].href;
|
||||
lImages[i].ondblclick = (function(){
|
||||
$.fancybox(lConfig)
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
}catch(pError){
|
||||
console.log(pError);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue