diff --git a/views/dashboard.php b/views/dashboard.php index ff3d897..cabeedc 100644 --- a/views/dashboard.php +++ b/views/dashboard.php @@ -1,7 +1,7 @@
-
+
@@ -14,10 +14,15 @@
- +
+
+ + +
+
@@ -33,10 +38,9 @@
+ - - @@ -80,11 +84,14 @@ $(function(){ content: $("#note_content").val(), in_reply_to: $("#note_in_reply_to").val(), location: $("#note_location").val(), - category: $("#note_category").val() + category: $("#note_category").val(), + slug: $("#note_slug").val() }, function(data){ var response = JSON.parse(data); if(response.location != false) { + $("#note_form").slideUp(); + $("#test_success").removeClass('hidden'); $("#test_error").addClass('hidden'); $("#post_href").attr("href", response.location); @@ -92,6 +99,7 @@ $(function(){ $("#note_content").val(""); $("#note_in_reply_to").val(""); $("#note_category").val(""); + $("#note_slug").val(""); } else { $("#test_success").addClass('hidden');