| | |
| | | { |
| | | var el, cl, container = $('#tabsbar'), |
| | | last_tab = $('span:last', container), |
| | | tab = '#settingstabdefault', |
| | | tab = '#settingstabpreferences', |
| | | action = window.rcmail && rcmail.env.action ? rcmail.env.action : null; |
| | | |
| | | // move About tab to the end |
| | |
| | | |
| | | // get selected tab |
| | | if (action) |
| | | tab = '#settingstab' + (action == 'preferences' ? 'default' : (action.indexOf('identity')>0 ? 'identities' : action.replace(/\./g, ''))); |
| | | tab = '#settingstab' + (action.indexOf('identity')>0 ? 'identities' : action.replace(/\./g, '')); |
| | | |
| | | $(tab).addClass('tablink-selected'); |
| | | $('a', tab).removeAttr('onclick').click(function() { return false; }); |