mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX Admin bloacklisted messages using correct $.inArray check
This commit is contained in:
parent
1f820b0b1c
commit
fde6376996
@ -150,7 +150,7 @@ jQuery.noConflict();
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Show message (but ignore aborted requests)
|
// Show message (but ignore aborted requests)
|
||||||
if(xhr.status !== 0 && msg && $.inArray(msg, ignoredMessages)) {
|
if(xhr.status !== 0 && msg && $.inArray(msg, ignoredMessages) != -1) {
|
||||||
// Decode into UTF-8, HTTP headers don't allow multibyte
|
// Decode into UTF-8, HTTP headers don't allow multibyte
|
||||||
statusMessage(decodeURIComponent(msg), msgType);
|
statusMessage(decodeURIComponent(msg), msgType);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user