From cbc756e404dc1f3328ec633407d2b37308085f9d Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Mon, 29 Dec 2014 14:55:40 +0100 Subject: [PATCH] Setting Fancybox parameters --- app/views/layouts/application.html.slim | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/app/views/layouts/application.html.slim b/app/views/layouts/application.html.slim index 713b010..1dd651d 100644 --- a/app/views/layouts/application.html.slim +++ b/app/views/layouts/application.html.slim @@ -22,7 +22,19 @@ html // Initialize Zurb Foundation javascript: $(document).foundation(); - $('.fancybox').fancybox({nextEffect: "none", prevEffect: "none"}); + $(".fancybox").fancybox({ + prevEffect : 'none', + nextEffect : 'none', + helpers : { + title : { + type: 'outside' + }, + thumbs : { + width : 50, + height : 50 + } + } + }); // See http://wbotelhos.com/raty //$('.star-rating').raty({