Added handler that submits the search form upon view changes
If the user select a different view (e.g. "grid" or "list") then the form gets submitted to that the new view is rendered automatically.
This commit is contained in:
parent
33efb2c931
commit
5f238d2ec1
1 changed files with 6 additions and 1 deletions
|
|
@ -3,6 +3,7 @@
|
|||
# You can use CoffeeScript in this file: http://coffeescript.org/
|
||||
|
||||
jQuery ->
|
||||
# Enable fancybox zoom for thumbnail images
|
||||
$("a.fancybox").fancybox({
|
||||
openEffect : 'elastic',
|
||||
closeEffect : 'elastic',
|
||||
|
|
@ -12,4 +13,8 @@ jQuery ->
|
|||
type : 'inside'
|
||||
}
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
# Submit the form if the user changes the view (grid or list)
|
||||
$("input[name='display']").change ->
|
||||
$(this).parents('form').submit()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue