diff options
author | Hugues Hiegel <root@paranoid> | 2014-08-05 16:44:07 +0200 |
---|---|---|
committer | Hugues Hiegel <root@paranoid> | 2014-08-05 16:44:07 +0200 |
commit | f91f8533678c388b879d9e999a6bcc9e22ad7e19 (patch) | |
tree | c0099e25a932399d6cd1066607a42e7fe220b977 /plugins/password/password.js | |
parent | ec116d33c22b371328c8557158736e3d2ee479a8 (diff) |
lot of stuff
Diffstat (limited to 'plugins/password/password.js')
-rw-r--r-- | plugins/password/password.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/password/password.js b/plugins/password/password.js index 12c9074ff..a060fc334 100644 --- a/plugins/password/password.js +++ b/plugins/password/password.js @@ -5,8 +5,13 @@ if (window.rcmail) { rcmail.addEventListener('init', function(evt) { + // <span id="settingstabdefault" class="tablink"><roundcube:button command="preferences" type="link" label="preferences" title="editpreferences" /></span> + var tab = $('<span>').attr('id', 'settingstabpluginpassword').addClass('tablink password'); + var button = $('<a>').attr('href', rcmail.env.comm_path+'&_action=plugin.password') + .html(rcmail.gettext('password')).appendTo(tab); - // register command handler + // add button and register commands + rcmail.add_element(tab, 'tabs'); rcmail.register_command('plugin.password-save', function() { var input_curpasswd = rcube_find_object('_curpasswd'); var input_newpasswd = rcube_find_object('_newpasswd'); |