diff --git a/apps/main/templates/base.html b/apps/main/templates/base.html
index 1a656df0d7..99bf043b29 100644
--- a/apps/main/templates/base.html
+++ b/apps/main/templates/base.html
@@ -108,7 +108,7 @@
{% block web_theme_javascript %}
-
+
@@ -126,24 +126,36 @@
});
});
- $("a.fancybox").fancybox({
- 'titleShow' : false,
- 'transitionIn' : 'elastic',
- 'transitionOut' : 'elastic',
- 'easingIn' : 'easeOutBack',
- 'easingOut' : 'easeInBack',
- 'type' : 'image',
- 'autoScale' : true
- });
- $("a.fancybox-noscaling").fancybox({
- 'titleShow' : false,
- 'transitionIn' : 'elastic',
- 'transitionOut' : 'elastic',
- 'easingIn' : 'easeOutBack',
- 'easingOut' : 'easeInBack',
- 'type' : 'image',
- 'autoScale' : false
- });
+ jQuery("a.fancybox").live('click', function(){
+ jQuery.fancybox({
+ 'href' : $(this).attr('href'),
+ 'titleShow' : false,
+ 'transitionIn' : 'elastic',
+ 'transitionOut' : 'elastic',
+ 'easingIn' : 'easeOutBack',
+ 'easingOut' : 'easeInBack',
+ 'type' : 'image',
+ 'autoScale' : true
+
+ });
+ return false;
+ });
+
+ jQuery("a.fancybox-noscaling").live('click', function(){
+ jQuery.fancybox({
+ 'href' : $(this).attr('href'),
+ 'titleShow' : false,
+ 'transitionIn' : 'elastic',
+ 'transitionOut' : 'elastic',
+ 'easingIn' : 'easeOutBack',
+ 'easingOut' : 'easeInBack',
+ 'type' : 'image',
+ 'autoScale' : false
+
+ });
+ return false;
+ });
+
$("a.fancybox-iframe").fancybox({
'titleShow' : false,
'transitionIn' : 'elastic',