Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed messages on add view.

  • Loading branch information...
commit 7bcf33fd03998b70edf7149b81ba5c981af16a2b 1 parent 9f3cf1b
Enrico Batista da Luz authored August 15, 2010
2  wifimap/media/js/spots.js
@@ -133,8 +133,10 @@ var SpotForm = {
133 133
     submitted: function(json) {
134 134
         if ( json.success ) {
135 135
             location.hash = "#" + json.redirect_to;
  136
+            Message.success(json.message);
136 137
         } else {
137 138
             $('#content').html(json.content);
  139
+            Message.error(json.message);
138 140
             SpotForm.bindSubmit();
139 141
         };
140 142
     },
2  wifimap/spots/templates/spots/add.html
... ...
@@ -1,7 +1,5 @@
1 1
 <h1>Add Spot</h1>
2 2
 
3  
-{% include "messages.html" %}
4  
-
5 3
 <form action="{% url spots_add %}" method="post" id="add-spot-form">
6 4
     {{ form.as_p }}
7 5
     <p><input type="submit" value="Save" id="submit-spot"></p>

0 notes on commit 7bcf33f

Please sign in to comment.
Something went wrong with that request. Please try again.