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
5325cc629c
commit
89e9450a8d
1 changed files with 4 additions and 4 deletions
|
|
@ -85,8 +85,7 @@ CloudCommander.Viewer.FancyBox.set = (function(){
|
|||
}
|
||||
|
||||
/* $('.fancybox').fancybox(this.getConfig()); */
|
||||
/*
|
||||
var lThis = this;
|
||||
/*
|
||||
$('.fancybox').dblclick( function(){
|
||||
var lConfig = lThis.getConfig();
|
||||
lConfig.href = this.href;
|
||||
|
|
@ -95,10 +94,11 @@ CloudCommander.Viewer.FancyBox.set = (function(){
|
|||
$(Images[i]).data("events").dblclick[0].handler
|
||||
*/
|
||||
var lImages = $('.fancybox');
|
||||
|
||||
var lThis = this;
|
||||
|
||||
for(var i=0; i < lImages.length; i++){
|
||||
lImages[i].ondblclick = (function(){
|
||||
var lConfig = this.getConfig();
|
||||
var lConfig = lThis.getConfig();
|
||||
lConfig.href = lImages[i].href;
|
||||
|
||||
$.fancybox(lConfig);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue