From cf46aefd9d8be57722514ab0b6047fa573f46a36 Mon Sep 17 00:00:00 2001 From: Thomas Bruederli Date: Sat, 28 Sep 2013 12:04:35 +0200 Subject: Make password plugin use the new 'settings_actions' hook to register its link in the settings navigation --- plugins/password/password.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'plugins/password/password.js') diff --git a/plugins/password/password.js b/plugins/password/password.js index a060fc334..12c9074ff 100644 --- a/plugins/password/password.js +++ b/plugins/password/password.js @@ -5,13 +5,8 @@ if (window.rcmail) { rcmail.addEventListener('init', function(evt) { - // - var tab = $('').attr('id', 'settingstabpluginpassword').addClass('tablink password'); - 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'); + // register command handler 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