You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

userinfo.js 779B

123456789101112131415161718
  1. /* Show user-info plugin script */
  2. if (window.rcmail) {
  3. rcmail.addEventListener('init', function() {
  4. // <span id="settingstabdefault" class="tablink"><roundcube:button command="preferences" type="link" label="preferences" title="editpreferences" /></span>
  5. var tab = $('<span>').attr('id', 'settingstabpluginuserinfo').addClass('tablink');
  6. $('<a>').attr('href', rcmail.env.comm_path + '&_action=plugin.userinfo')
  7. .text(rcmail.get_label('userinfo', 'userinfo'))
  8. .click(function(e) { return rcmail.command('plugin.userinfo', '', this, e); })
  9. .appendTo(tab);
  10. // add button and register command
  11. rcmail.add_element(tab, 'tabs');
  12. rcmail.register_command('plugin.userinfo', function() { rcmail.goto_url('plugin.userinfo') }, true);
  13. })
  14. }