Extend basic notification to add a star icon overlay if we're in IE Pinned site mode (Win7+).

The star icon is taken from Xiao Icon set (http://delacro.deviantart.com/art/Xiao-Icon-84772282).
pull/87/head
Rimas Kudelis 12 years ago
parent 471157982b
commit 67a5252613

@ -34,6 +34,13 @@ function newmail_notifier_stop(prop)
$('<link rel="shortcut icon" href="'+rcmail.env.favicon_href+'"/>').replaceAll('link[rel="shortcut icon"]');
rcmail.env.favicon_href = null;
}
// Remove IE icon overlay if we're pinned to Taskbar
try {
if(window.external.msIsSiteMode()) {
window.external.msSiteModeClearIconOverlay();
}
} catch(e) {}
}
// Basic notification: window.focus and favicon change
@ -49,6 +56,13 @@ function newmail_notifier_basic()
rcmail.env.favicon_href = oldlink.attr('href');
link.replaceAll(oldlink);
// Add IE icon overlay if we're pinned to Taskbar
try {
if (window.external.msIsSiteMode()) {
window.external.msSiteModeSetIconOverlay('plugins/newmail_notifier/overlay.ico', rcmail.gettext('title', 'newmail_notifier'));
}
} catch(e) {}
}
// Sound notification

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Loading…
Cancel
Save