Switching out chevron on Change Type button

This commit is contained in:
Rob Harrington
2014-10-24 12:54:21 +11:00
parent d0c3502f27
commit 498b51cedb

View File

@@ -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