Aleksander Machniak
2013-08-30 f49e28e4a6ec515ff4d965cf8ad7821e7258406e
Fix newmail_notifier issue where favicon wasn't changed back to default (#1489313)

Conflicts:

CHANGELOG
2 files modified
10 ■■■■ changed files
CHANGELOG 1 ●●●● patch | view | raw | blame | history
plugins/newmail_notifier/newmail_notifier.js 9 ●●●●● patch | view | raw | blame | history
CHANGELOG
@@ -1,6 +1,7 @@
CHANGELOG Roundcube Webmail
===========================
- Fix newmail_notifier issue where favicon wasn't changed back to default (#1489313)
- Allow setting INBOX as Sent folder (#1489219)
- Fix setting of Junk and NonJunk flags by markasjunk plugin (#1489285)
- Fix lack of Reply-To address in header of forwarded message body (#1489298)
plugins/newmail_notifier/newmail_notifier.js
@@ -30,9 +30,9 @@
function newmail_notifier_stop(prop)
{
    // revert original favicon
    if (rcmail.env.favicon_href && (!prop || prop.action != 'check-recent')) {
    if (rcmail.env.favicon_href && rcmail.env.favicon_changed && (!prop || prop.action != 'check-recent')) {
        $('<link rel="shortcut icon" href="'+rcmail.env.favicon_href+'"/>').replaceAll('link[rel="shortcut icon"]');
        rcmail.env.favicon_href = null;
        rcmail.env.favicon_changed = 0;
    }
    // Remove IE icon overlay if we're pinned to Taskbar
@@ -54,7 +54,10 @@
    var link = $('<link rel="shortcut icon" href="plugins/newmail_notifier/favicon.ico"/>'),
        oldlink = $('link[rel="shortcut icon"]', w.document);
    rcmail.env.favicon_href = oldlink.attr('href');
    if (!rcmail.env.favicon_href)
        rcmail.env.favicon_href = oldlink.attr('href');
    rcmail.env.favicon_changed = 1;
    link.replaceAll(oldlink);
    // Add IE icon overlay if we're pinned to Taskbar