Reverted back to the previous fancybox initialization method, added thin_border class for the new document widget, fixed a small typo

This commit is contained in:
Roberto Rosario
2011-11-22 09:01:13 -04:00
parent 5097a8b180
commit 9be2aebd3f

View File

@@ -102,6 +102,10 @@
-webkit-box-shadow: -1px -1px 2px #004977; -webkit-box-shadow: -1px -1px 2px #004977;
box-shadow: -1px -1px 2px #004977; box-shadow: -1px -1px 2px #004977;
} }
.thin_border {
border: 1px solid black;
}
</style> </style>
{% block stylesheets %}{% endblock %} {% block stylesheets %}{% endblock %}
{% endblock %} {% endblock %}
@@ -126,36 +130,26 @@
}); });
}); });
jQuery("a.fancybox").live('click', function(){ $("a.fancybox").fancybox({
jQuery.fancybox({ 'titleShow' : false,
'href' : $(this).attr('href'), 'transitionIn' : 'elastic',
'titleShow' : false, 'transitionOut' : 'elastic',
'transitionIn' : 'elastic', 'easingIn' : 'easeOutBack',
'transitionOut' : 'elastic', 'easingOut' : 'easeInBack',
'easingIn' : 'easeOutBack', 'type' : 'image',
'easingOut' : 'easeInBack', 'autoScale' : true
'type' : 'image', });
'autoScale' : true
$("a.fancybox-noscaling").fancybox({
}); 'titleShow' : false,
return false; 'transitionIn' : 'elastic',
}); 'transitionOut' : 'elastic',
'easingIn' : 'easeOutBack',
jQuery("a.fancybox-noscaling").live('click', function(){ 'easingOut' : 'easeInBack',
jQuery.fancybox({ 'type' : 'image',
'href' : $(this).attr('href'), 'autoScale' : false
'titleShow' : false, });
'transitionIn' : 'elastic',
'transitionOut' : 'elastic',
'easingIn' : 'easeOutBack',
'easingOut' : 'easeInBack',
'type' : 'image',
'autoScale' : false
});
return false;
});
$("a.fancybox-iframe").fancybox({ $("a.fancybox-iframe").fancybox({
'titleShow' : false, 'titleShow' : false,
'transitionIn' : 'elastic', 'transitionIn' : 'elastic',
@@ -178,7 +172,7 @@
$('img.lazy-load').jail({ $('img.lazy-load').jail({
event: 'load', event: 'load',
timeout: 10, timeout: 10,
placeholder: '{{ STATIC_URL }}/images/ajax-loader.gif' placeholder: '{{ STATIC_URL }}images/ajax-loader.gif'
}); });
}); });
</script> </script>