From f488efc15887112a8106202cd41ecdb428f21bbb Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Thu, 3 Mar 2016 16:45:24 -0500 Subject: [PATCH] removing category form after submission not functioning at this point in the code --- js/admin.js | 1 + views/admin/events/categories.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/js/admin.js b/js/admin.js index 1a988b6..3c7e2d4 100644 --- a/js/admin.js +++ b/js/admin.js @@ -16,6 +16,7 @@ jQuery(document).ready( function () { jQuery(".edit").slideToggle(800) ; } }); + jQuery("#dateTimeLink").click( function (){ if(jQuery("#dateTime").css("display") == "none"){ jQuery("#dateTime").slideDown(600) ; diff --git a/views/admin/events/categories.html b/views/admin/events/categories.html index 165646c..f2db3db 100644 --- a/views/admin/events/categories.html +++ b/views/admin/events/categories.html @@ -40,7 +40,6 @@ save[i].setAttribute("value", 'null'); } form.submit(); - window.location = window.location.href; } function saveCat(form){ var remove = document.getElementsByClassName('delete'); @@ -48,5 +47,6 @@ remove[i].setAttribute("value", 'null'); } form.submit(); + window.onload = window.location.reload(true); } \ No newline at end of file -- 2.17.1