diff options
-rw-r--r-- | plugins/newmail_notifier/newmail_notifier.js | 2 | ||||
-rw-r--r-- | program/js/app.js | 4 | ||||
-rw-r--r-- | skins/classic/functions.js | 2 | ||||
-rw-r--r-- | skins/larry/ui.js | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/plugins/newmail_notifier/newmail_notifier.js b/plugins/newmail_notifier/newmail_notifier.js index 2beacf650..69f1867c9 100644 --- a/plugins/newmail_notifier/newmail_notifier.js +++ b/plugins/newmail_notifier/newmail_notifier.js @@ -108,7 +108,7 @@ function newmail_notifier_desktop(body) lang: "", body: body, tag: "newmail_notifier", - icon: "plugins/newmail_notifier/mail.png", + icon: "plugins/newmail_notifier/mail.png" }); popup.onclick = function() { this.close(); diff --git a/program/js/app.js b/program/js/app.js index 9b5b505dc..f36a3caa8 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -1708,7 +1708,7 @@ function rcube_webmail() url += (url.match(/\?/) ? '&' : '?') + '_extwin=1'; if (this.env.standard_windows) - extwin = window.open(url, wname); + var extwin = window.open(url, wname); else { var win = this.is_framed() ? parent.window : window, page = $(win), @@ -1729,7 +1729,7 @@ function rcube_webmail() } // focus window, delayed to bring to front - window.setTimeout(function() { extwin.focus(); }, 10); + window.setTimeout(function() { extwin && extwin.focus(); }, 10); return extwin; }; diff --git a/skins/classic/functions.js b/skins/classic/functions.js index 8d81c3ad2..2b7886d38 100644 --- a/skins/classic/functions.js +++ b/skins/classic/functions.js @@ -984,7 +984,7 @@ function rcube_init_mail_ui() else if (rcmail.env.action == 'show' || rcmail.env.action == 'preview') // add menu link for each attachment $('#attachment-list > li[id^="attach"]').each(function() { - $(this).append($('<a class="drop">').click(function() { rcmail_ui.show_attachmentmenu(this); })); + $(this).append($('<a class="drop"></a>').click(function() { rcmail_ui.show_attachmentmenu(this); })); }); } else if (rcmail.env.task == 'addressbook') { diff --git a/skins/larry/ui.js b/skins/larry/ui.js index 760cc7a03..1edc2caa0 100644 --- a/skins/larry/ui.js +++ b/skins/larry/ui.js @@ -106,7 +106,7 @@ function rcube_mail_ui() // add menu link for each attachment $('#attachment-list > li').each(function() { - $(this).append($('<a class="drop">').click(function() { attachmentmenu(this); })); + $(this).append($('<a class="drop"></a>').click(function() { attachmentmenu(this); })); }); } else if (rcmail.env.action == 'compose') { |