Issues have been reported recently that during user creation a alert box is shown but no user is created and similarly for renaming Role.
We have observed the cause is due to an extra character (newline) is prefixed with the response from the server. The actual reason why the extra character is getting inserted is still unknown.
If you are facing this issue, kindly share your server login with us which could be of some help for further analysis.
Kindly look at the following trac tickets and comments on them.
Comments
change:
if(response.responsetext == 'success')
to:
if(trim(response.responsetext) == 'success')
but problem is still not solved.
anand
replace
if(response.responsetext == 'success')
with
if((response.responsetext).match(/success/ig) != null)
philip