mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-01 02:03:22 +00:00
Switching out chevron on Change Type button
This commit is contained in:
@@ -9,6 +9,12 @@
|
||||
- content_for :page_actions do
|
||||
:javascript
|
||||
function toggleType(){
|
||||
if( $('#type_selection').is(":visible") ){
|
||||
$('button#toggle_type i').switchClass("icon-chevron-up","icon-chevron-down")
|
||||
}
|
||||
else {
|
||||
$('button#toggle_type i').switchClass("icon-chevron-down","icon-chevron-up")
|
||||
}
|
||||
$("#type_selection").slideToggle()
|
||||
}
|
||||
#type_button
|
||||
|
||||
Reference in New Issue
Block a user