Elastic: Fix some jumping effect in Chrome (#6677)

pull/6796/head
Aleksander Machniak 6 years ago
parent c8bec34f8f
commit 7af72e82fc

@ -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(

@ -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);

Loading…
Cancel
Save