Fixed the double form submit issue.

git-svn-id: http://svn.cleancode.org/svn/pickles@44 4d10bc64-7434-11dc-a737-d2d0f8310089
This commit is contained in:
Josh Sherman 2008-09-14 02:21:29 +00:00
parent 0cd02c228f
commit b61dc268fe

View file

@ -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();
}
}