Skip to content

Commit

Permalink
Minor glitches addressed
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Van Pelt authored and Chris Van Pelt committed Sep 18, 2008
1 parent 780cfa1 commit 41536b3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions mootools/js/fancyzoom.js
Expand Up @@ -64,6 +64,7 @@ var FancyZoom = new Class({
}
},
onComplete: function(element) {
FancyZoom.zoomed = true;
if (!element.retrieve('scaleImg'))
$('zoom_content').set('html', element.retrieve('content_div').get('html'));
$('zoom_close').setStyle('display', '');
Expand All @@ -78,6 +79,7 @@ var FancyZoom = new Class({
$('zoom_close').setStyle('display', 'none');
},
onComplete: function(element) {
FancyZoom.zoomed = false;
element.setStyle('display', 'none');
FancyZoom.unfixBackgroundsForIE();
}
Expand All @@ -96,6 +98,7 @@ var FancyZoom = new Class({
});
}
});
FancyZoom.zoomed = false;
FancyZoom.show = function(e) {
e.stop();
var element = $(e.target).match('a') ? e.target : e.target.getParent('a');
Expand Down Expand Up @@ -130,6 +133,8 @@ FancyZoom.show = function(e) {
height: height})
}
FancyZoom.hide = function(e) {
if(!FancyZoom.zoomed)
return
e.stop();
FancyZoom.fixBackgroundsForIE();
FancyZoom.hideFx.start({
Expand Down
2 changes: 1 addition & 1 deletion mootools/js/fancyzoom.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 41536b3

Please sign in to comment.