# Place all the behaviors and hooks related to the matching controller here. # All this logic will automatically be available in application.js. # You can use CoffeeScript in this file: http://coffeescript.org/ jQuery -> # Enable fancybox zoom for thumbnail images $("a.fancybox").fancybox({ openEffect : 'elastic', closeEffect : 'elastic', helpers : { title : { type : 'inside' } } }) # Submit the form if the user changes the view (grid or list) $("input[name='search[display]']").change -> $(this).parents('form').submit()