From 0a03d34da0b7ecc100eb9ef967f4c65fc015e5e7 Mon Sep 17 00:00:00 2001 From: alec Date: Sun, 30 Jan 2011 20:33:44 +0000 Subject: - Fix double request and onclick behaviour on tabs using Firefox git-svn-id: https://svn.roundcube.net/trunk@4472 208e9e7b-5314-0410-a742-e7e81cd9613c --- plugins/password/password.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'plugins/password/password.js') diff --git a/plugins/password/password.js b/plugins/password/password.js index 17fe3f7bb..26376b36d 100644 --- a/plugins/password/password.js +++ b/plugins/password/password.js @@ -7,13 +7,11 @@ if (window.rcmail) { rcmail.addEventListener('init', function(evt) { // var tab = $('').attr('id', 'settingstabpluginpassword').addClass('tablink'); - - var button = $('').attr('href', rcmail.env.comm_path+'&_action=plugin.password').html(rcmail.gettext('password')).appendTo(tab); - button.bind('click', function(e){ return rcmail.command('plugin.password', this) }); + var button = $('').attr('href', rcmail.env.comm_path+'&_action=plugin.password') + .html(rcmail.gettext('password')).appendTo(tab); // add button and register commands rcmail.add_element(tab, 'tabs'); - rcmail.register_command('plugin.password', function() { rcmail.goto_url('plugin.password') }, true); rcmail.register_command('plugin.password-save', function() { var input_curpasswd = rcube_find_object('_curpasswd'); var input_newpasswd = rcube_find_object('_newpasswd'); -- cgit v1.2.3