From 498b51cedb93a4ddb125df83675e37477a2d9363 Mon Sep 17 00:00:00 2001 From: Rob Harrington Date: Fri, 24 Oct 2014 12:54:21 +1100 Subject: [PATCH] Switching out chevron on Change Type button --- .../admin/overview/single_enterprise_dashboard.html.haml | 6 ++++++ 1 file changed, 6 insertions(+) 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