Update lib/client/viewer.js

This commit is contained in:
coderaiser 2012-08-08 17:29:02 +03:00
parent 5325cc629c
commit 89e9450a8d

View file

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