Commit eaf3972b authored by Gabriel Monnerat's avatar Gabriel Monnerat

fix issue to reload page when an user is created.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44164 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d2a188af
......@@ -154,13 +154,8 @@ function displayLoginForm(){ \n
displayFormMessage("Please confirm your password correctly..");\n
return false;\n
}\n
$.ajax({\n
type: \'post\',\n
url: \'ERPSite_createUNGUser\',\n
data: $("form#create-user").serializeArray(),\n
dataType: "json",\n
success: function(data){\n
if (jQuery.parseJSON(data) == null){\n
$.getJSON(\'ERPSite_createUNGUser?\' + $("form#create-user").serialize(), function(response){\n
if (response == null){\n
displayFormMessage(formHash.login_name + " is not available, please try another...");\n
return false;\n
}\n
......@@ -169,7 +164,6 @@ function displayLoginForm(){ \n
"&" + "last_name=" + formHash.lastname;\n
setTimeout(waitCreateUNGUser(paramStr), 2000); \n
}\n
},\n
});\n
});\n
});\n
......
281
\ No newline at end of file
282
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment