mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 16:51:40 +09:00
Restore backward compatible behavior when an ajax form submission returns both a message and a redirect URL
This commit is contained in:
parent
4b26a67ca0
commit
901f565a81
1 changed files with 1 additions and 1 deletions
|
|
@ -614,7 +614,7 @@ Rhymix.ajaxForm = function(form, callback_success, callback_error) {
|
|||
} else {
|
||||
callback_success = function(data) {
|
||||
if (data.message && data.message !== 'success') {
|
||||
alert(data.message);
|
||||
rhymix_alert(data.message, data.redirect_url);
|
||||
}
|
||||
if (data.redirect_url) {
|
||||
Rhymix.redirectToUrl(data.redirect_url.replace(/&/g, '&'));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue