From 9be2aebd3fa543ab8d7bed7b18889ed6cf4975da Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Tue, 22 Nov 2011 09:01:13 -0400 Subject: [PATCH] Reverted back to the previous fancybox initialization method, added thin_border class for the new document widget, fixed a small typo --- apps/main/templates/base.html | 56 ++++++++++++++++------------------- 1 file changed, 25 insertions(+), 31 deletions(-) diff --git a/apps/main/templates/base.html b/apps/main/templates/base.html index 99bf043b29..c1fcedd0cb 100644 --- a/apps/main/templates/base.html +++ b/apps/main/templates/base.html @@ -102,6 +102,10 @@ -webkit-box-shadow: -1px -1px 2px #004977; box-shadow: -1px -1px 2px #004977; } + + .thin_border { + border: 1px solid black; + } {% block stylesheets %}{% endblock %} {% endblock %} @@ -126,36 +130,26 @@ }); }); - 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").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 + }); + $("a.fancybox-iframe").fancybox({ 'titleShow' : false, 'transitionIn' : 'elastic', @@ -178,7 +172,7 @@ $('img.lazy-load').jail({ event: 'load', timeout: 10, - placeholder: '{{ STATIC_URL }}/images/ajax-loader.gif' + placeholder: '{{ STATIC_URL }}images/ajax-loader.gif' }); });