mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-28 23:03:25 +09:00
Fix unnecessary redirect on comment insertion in some skins
This commit is contained in:
parent
54fc1da600
commit
006474cb98
2 changed files with 63 additions and 34 deletions
|
|
@ -104,6 +104,8 @@
|
|||
// If the response contains a redirect URL, redirect immediately.
|
||||
if (data.redirect_url) {
|
||||
data.redirect_url = data.redirect_url.replace(/&/g, "&");
|
||||
}
|
||||
if (data.redirect_url && !$.isFunction(callback_success)) {
|
||||
if (data.redirect_url.indexOf(window.location.href.replace(/#.+$/, "") + "#") === 0)
|
||||
{
|
||||
window.location = data.redirect_url;
|
||||
|
|
@ -232,6 +234,8 @@
|
|||
// If the response contains a redirect URL, redirect immediately.
|
||||
if (data.redirect_url) {
|
||||
data.redirect_url = data.redirect_url.replace(/&/g, "&");
|
||||
}
|
||||
if (data.redirect_url && !$.isFunction(callback_success)) {
|
||||
if (data.redirect_url.indexOf(window.location.href.replace(/#.+$/, "") + "#") === 0)
|
||||
{
|
||||
window.location = data.redirect_url;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue