removing category form after submission not functioning at this point in the code
authorAnthony Talarico <talarico@gaslightmedia.com>
Thu, 3 Mar 2016 21:45:24 +0000 (16:45 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Thu, 3 Mar 2016 21:45:24 +0000 (16:45 -0500)
js/admin.js
views/admin/events/categories.html

index 1a988b6..3c7e2d4 100644 (file)
@@ -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) ;
index 165646c..f2db3db 100644 (file)
@@ -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);
      }
 </script>
\ No newline at end of file