From 026b5dcd88efae4fb5b28adbbf758fb9c39e99f9 Mon Sep 17 00:00:00 2001 From: Isaac Bythewood Date: Tue, 12 Mar 2013 06:38:47 +0000 Subject: [PATCH] Now shows messages from django --- pinry/static/js/messages.js | 6 ++++++ pinry/templates/base.html | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/pinry/static/js/messages.js b/pinry/static/js/messages.js index 10b6f89..cc86389 100644 --- a/pinry/static/js/messages.js +++ b/pinry/static/js/messages.js @@ -14,4 +14,10 @@ $(document).ready(function() { }, 3300); }); } + + if (errors) { + for (var i in errors) { + message(errors[i].text, errors[i].tags); + } + } }); diff --git a/pinry/templates/base.html b/pinry/templates/base.html index 4eaae32..212386e 100644 --- a/pinry/templates/base.html +++ b/pinry/templates/base.html @@ -36,6 +36,12 @@