mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-10-31 07:52:37 +01:00
notification tweaks for chrome
This commit is contained in:
parent
5e30c482cd
commit
276e01166a
@ -1,10 +1,15 @@
|
|||||||
$(document).ready(function () {
|
$(window).load(function () {
|
||||||
var speed = 700;
|
var speed = 700;
|
||||||
var isShown = false;
|
var isShown = false;
|
||||||
var currentMessage = "";
|
var currentMessage = "";
|
||||||
|
|
||||||
$.doTimeout(500, refreshNotifications);
|
//workaround for the infinite browser load in chrome
|
||||||
|
if ($.browser.webkit) {
|
||||||
|
$.doTimeout(1000, refreshNotifications);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
refreshNotifications();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
function refreshNotifications() {
|
function refreshNotifications() {
|
||||||
|
@ -61,7 +61,7 @@
|
|||||||
<span id="msgText">background notification</span>
|
<span id="msgText">background notification</span>
|
||||||
</div>
|
</div>
|
||||||
@(Html.Telerik().ScriptRegistrar().jQuery(false))
|
@(Html.Telerik().ScriptRegistrar().jQuery(false))
|
||||||
<script type="text/javascript" src="/Scripts/Notification.js" async="async"></script>
|
|
||||||
@RenderSection("Scripts", required: false)
|
@RenderSection("Scripts", required: false)
|
||||||
|
<script type="text/javascript" src="/Scripts/Notification.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
Reference in New Issue
Block a user