From 3ef410499214bcc48242001c7bcb627a711ac614 Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Mon, 26 May 2014 17:01:16 -0700 Subject: add slug field. collapse form after a successful post --- views/dashboard.php | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) 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'); -- cgit v1.2.3