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/package.xml | 1 + plugins/password/password.js | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'plugins/password') diff --git a/plugins/password/package.xml b/plugins/password/package.xml index 6874e7ce4..8e8ad5318 100644 --- a/plugins/password/package.xml +++ b/plugins/password/package.xml @@ -35,6 +35,7 @@ - ldap/ldap_simple drivers: support %dc variable in config - ldap/ldap_simple drivers: support Samba password change - Fix extended error messages handling (#1487676) +- Fix double request when clicking on Password tab in Firefox 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