From b61dc268fe2c6b436c743ff8862ac9cc08750e97 Mon Sep 17 00:00:00 2001 From: Josh Sherman Date: Sun, 14 Sep 2008 02:21:29 +0000 Subject: [PATCH] Fixed the double form submit issue. git-svn-id: http://svn.cleancode.org/svn/pickles@44 4d10bc64-7434-11dc-a737-d2d0f8310089 --- static/js/ajax.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/ajax.js b/static/js/ajax.js index c236ea9..28d9525 100644 --- a/static/js/ajax.js +++ b/static/js/ajax.js @@ -152,7 +152,7 @@ function ajaxRequest(htmlElement, customHandler, placement, url) { } if (typeof responseObject.type != 'undefined') { - if (responseObject.type == 'success') { + if (responseObject.type == 'success' && placement == 'inside') { formElement.submit(); } }