diff options
author | thomascube <thomas@roundcube.net> | 2011-12-23 18:02:47 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2011-12-23 18:02:47 +0000 |
commit | 4f1b7a447dab993dfd3a3b1b6d4091b9d32ce24b (patch) | |
tree | 9e6a05b540b2aa8db1b66444f81d3b105f7320c5 /skins/larry/ui.js | |
parent | 3e7b1c0e8cd85d1f49bfa8c3968151f8a0a23c70 (diff) |
Add generic template for plugins
Diffstat (limited to 'skins/larry/ui.js')
-rw-r--r-- | skins/larry/ui.js | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/skins/larry/ui.js b/skins/larry/ui.js index 7033ebf55..7c0b0354b 100644 --- a/skins/larry/ui.js +++ b/skins/larry/ui.js @@ -104,12 +104,14 @@ function rcube_mail_ui() } } else if (rcmail.env.task == 'settings') { - var tab = '#settingstabpreferences'; - if (rcmail.env.action) - tab = '#settingstab' + (rcmail.env.action.indexOf('identity')>0 ? 'identities' : rcmail.env.action.replace(/\./g, '')); + rcmail.addEventListener('init', function(){ + var tab = '#settingstabpreferences'; + if (rcmail.env.action) + tab = '#settingstab' + (rcmail.env.action.indexOf('identity')>0 ? 'identities' : rcmail.env.action.replace(/\./g, '')); - $(tab).addClass('selected') - .children().first().removeAttr('onclick').click(function() { return false; }); + $(tab).addClass('selected') + .children().first().removeAttr('onclick').click(function() { return false; }); + }); if (rcmail.env.action == 'folders') { new rcube_splitter({ id:'folderviewsplitter', p1:'#folderslist', p2:'#folder-details', |