From: Anthony Talarico Date: Thu, 3 Mar 2016 21:45:24 +0000 (-0500) Subject: removing category form after submission not functioning at this point in the code X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=f488efc15887112a8106202cd41ecdb428f21bbb;p=WP-Plugins%2Fglm-member-db-events.git removing category form after submission not functioning at this point in the code --- 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