diff --git a/app/views/spree/admin/overview/single_enterprise_dashboard.html.haml b/app/views/spree/admin/overview/single_enterprise_dashboard.html.haml index 6df9c751ac..9589333af2 100644 --- a/app/views/spree/admin/overview/single_enterprise_dashboard.html.haml +++ b/app/views/spree/admin/overview/single_enterprise_dashboard.html.haml @@ -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