From c4185d03cfb5c4e9df4c004b2c13a9b3c3196eac Mon Sep 17 00:00:00 2001 From: thomasb Date: Sun, 19 Apr 2009 17:44:29 +0000 Subject: Merged branch devel-api (from r2208 to r2387) back into trunk (omitting some sample plugins) git-svn-id: https://svn.roundcube.net/trunk@2401 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/plugins/userinfo/userinfo.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 roundcubemail/plugins/userinfo/userinfo.js (limited to 'roundcubemail/plugins/userinfo/userinfo.js') diff --git a/roundcubemail/plugins/userinfo/userinfo.js b/roundcubemail/plugins/userinfo/userinfo.js new file mode 100644 index 000000000..70a5085b3 --- /dev/null +++ b/roundcubemail/plugins/userinfo/userinfo.js @@ -0,0 +1,16 @@ +/* Show user-info plugin script */ + +if (window.rcmail) { + rcmail.addEventListener('init', function(evt) { + // + var tab = $('').attr('id', 'settingstabpluginuserinfo').addClass('tablink'); + + var button = $('').attr('href', rcmail.env.comm_path+'&_action=plugin.userinfo').html(rcmail.gettext('userinfo', 'userinfo')).appendTo(tab); + button.bind('click', function(e){ return rcmail.command('plugin.userinfo', this) }); + + // add button and register command + rcmail.add_element(tab, 'tabs'); + rcmail.register_command('plugin.userinfo', function(){ rcmail.goto_url('plugin.userinfo') }, true); + }) +} + -- cgit v1.2.3