diff --git a/plugins/newmail_notifier/newmail_notifier.php b/plugins/newmail_notifier/newmail_notifier.php index 0e848e68c..80aaebf3d 100644 --- a/plugins/newmail_notifier/newmail_notifier.php +++ b/plugins/newmail_notifier/newmail_notifier.php @@ -110,7 +110,7 @@ class newmail_notifier extends rcube_plugin $field_id = '_' . $key; $input = new html_checkbox(array('name' => $field_id, 'id' => $field_id, 'value' => 1)); $content = $input->show($this->rc->config->get($key)) - . ' ' . html::a(array('href' => '#', 'onclick' => 'newmail_notifier_test_'.$type.'()'), + . ' ' . html::a(array('href' => '#', 'onclick' => 'newmail_notifier_test_'.$type.'(); return false'), $this->gettext('test')); $args['blocks']['new_message']['options'][$key] = array( diff --git a/skins/elastic/ui.js b/skins/elastic/ui.js index 5107b2168..b778e4d93 100644 --- a/skins/elastic/ui.js +++ b/skins/elastic/ui.js @@ -2844,7 +2844,7 @@ function rcube_elastic_ui() $.each(['open', 'download', 'rename'], function() { var action = this; $('#attachmenu' + action, obj).off('click').attr('onclick', '').click(function(e) { - rcmail.command(action + '-attachment', id, this, e.originalEvent); + return rcmail.command(action + '-attachment', id, this, e.originalEvent); }); }); @@ -2891,7 +2891,8 @@ function rcube_elastic_ui() obj.find('a').off('click').removeClass('active'); if (rcmail.env.has_writeable_addressbook) { - $('.addressbook', obj).addClass('active').on('click', function(e) { + $('.addressbook', obj).addClass('active') + .on('click', function(e) { var i, contact = mailto, txt = $(button).filter('.rcmContactAddress').text(); @@ -2902,7 +2903,7 @@ function rcube_elastic_ui() contact = '"' + $.trim(txt) + '" <' + contact + '>'; } - rcmail.command('add-contact', contact, this, e.originalEvent); + return rcmail.command('add-contact', contact, this, e.originalEvent); }); } @@ -2917,6 +2918,8 @@ function rcube_elastic_ui() else { rcmail.command('compose', mailto, this, e.originalEvent); } + + return false; // for Chrome }); return rcmail.command('menu-open', {menu: 'mailto-menu', link: button}, button, event.originalEvent);