From 11ca6772efeb6349e155fddf31581099cf847bca Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Wed, 14 Mar 2012 15:27:40 -0400 Subject: [PATCH] Move preview titles to the top --- apps/main/templates/base.html | 51 ++++++++++++++++++++--------------- 1 file changed, 30 insertions(+), 21 deletions(-) diff --git a/apps/main/templates/base.html b/apps/main/templates/base.html index 311d930dc8..86fa6495d1 100644 --- a/apps/main/templates/base.html +++ b/apps/main/templates/base.html @@ -131,33 +131,42 @@ }); $("a.fancybox").fancybox({ - 'titleShow' : false, - 'transitionIn' : 'elastic', - 'transitionOut' : 'elastic', - 'easingIn' : 'easeOutBack', - 'easingOut' : 'easeInBack', - 'type' : 'image', - 'autoScale' : true + 'titleShow' : true, + 'transitionIn' : 'elastic', + 'transitionOut' : 'elastic', + 'easingIn' : 'easeOutBack', + 'easingOut' : 'easeInBack', + 'type' : 'image', + 'autoScale' : true, + 'onComplete': function() { + $("#fancybox-title").css({'top':'0px', 'bottom':'auto'}); + } }); $("a.fancybox-staging").fancybox({ - 'titleShow' : true, - 'transitionIn' : 'elastic', - 'transitionOut' : 'elastic', - 'easingIn' : 'easeOutBack', - 'easingOut' : 'easeInBack', - 'type' : 'image', - 'autoScale' : true + 'titleShow' : true, + 'transitionIn' : 'elastic', + 'transitionOut' : 'elastic', + 'easingIn' : 'easeOutBack', + 'easingOut' : 'easeInBack', + 'type' : 'image', + 'autoScale' : true, + 'onComplete': function() { + $("#fancybox-title").css({'top':'0px', 'bottom':'auto'}); + } }); $("a.fancybox-noscaling").fancybox({ - 'titleShow' : false, - 'transitionIn' : 'elastic', - 'transitionOut' : 'elastic', - 'easingIn' : 'easeOutBack', - 'easingOut' : 'easeInBack', - 'type' : 'image', - 'autoScale' : false + 'titleShow' : true, + 'transitionIn' : 'elastic', + 'transitionOut' : 'elastic', + 'easingIn' : 'easeOutBack', + 'easingOut' : 'easeInBack', + 'type' : 'image', + 'autoScale' : false, + 'onComplete': function() { + $("#fancybox-title").css({'top':'0px', 'bottom':'auto'}); + } }); $("a.fancybox-iframe").fancybox({