From 2a9b44366a53ea9885715c93b5c7de5e62616809 Mon Sep 17 00:00:00 2001 From: Yan Date: Wed, 11 Oct 2017 10:21:44 +0630 Subject: [PATCH] check login key --- app/views/home/index.html.erb | 3 ++- app/views/home/show.html.erb | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/views/home/index.html.erb b/app/views/home/index.html.erb index 83d43ea8..a8a6d85c 100644 --- a/app/views/home/index.html.erb +++ b/app/views/home/index.html.erb @@ -148,12 +148,13 @@ console.log($(this).data("formid")); var item = $(this).data("formid"); $(item).submit(); - }); + // Add minus icon for collapse element which is open by default $(".collapse.in").each(function () { $(this).siblings(".panel-heading").find(".glyphicon").addClass("glyphicon-minus").removeClass("glyphicon-plus"); }); + // Toggle plus minus icon on show hide of collapse element $(".collapse").on('show.bs.collapse', function () { $(this).parent().find(".glyphicon").removeClass("glyphicon-plus").addClass("glyphicon-minus"); diff --git a/app/views/home/show.html.erb b/app/views/home/show.html.erb index a6ffe486..109ccc61 100644 --- a/app/views/home/show.html.erb +++ b/app/views/home/show.html.erb @@ -40,9 +40,8 @@