Changeset 5894 in subversion


Ignore:
Timestamp:
Feb 20, 2012 8:47:26 AM (16 months ago)
Author:
alec
Message:
  • Make sure About tab is always the last tab (#1488257)
Location:
trunk/roundcubemail
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/CHANGELOG

    r5877 r5894  
    22=========================== 
    33 
     4- Make sure About tab is always the last tab (#1488257) 
    45- Fix issue with folder creation under INBOX. namespace (#1488349) 
    56- Added mailto: protocol handler registration link in User Preferences (#1486580) 
  • trunk/roundcubemail/skins/default/functions.js

    r5496 r5894  
    99function rcube_init_settings_tabs() 
    1010{ 
    11   var tab = '#settingstabdefault'; 
    12   if (window.rcmail && rcmail.env.action) 
    13     tab = '#settingstab' + (rcmail.env.action=='preferences' ? 'default' : (rcmail.env.action.indexOf('identity')>0 ? 'identities' : rcmail.env.action.replace(/\./g, ''))); 
     11  var el, cl, container = $('#tabsbar'), 
     12    last_tab = $('span:last', container), 
     13    tab = '#settingstabdefault', 
     14    action = window.rcmail && rcmail.env.action ? rcmail.env.action : null; 
     15 
     16  // move About tab to the end 
     17  if (last_tab && last_tab.attr('id') != 'settingstababout' && (el = $('#settingstababout'))) { 
     18    cl = el.clone(true); 
     19    el.remove(); 
     20    last_tab.after(cl); 
     21  } 
     22 
     23  // get selected tab 
     24  if (action) 
     25    tab = '#settingstab' + (action == 'preferences' ? 'default' : (action.indexOf('identity')>0 ? 'identities' : action.replace(/\./g, ''))); 
    1426 
    1527  $(tab).addClass('tablink-selected'); 
    16   $(tab + '> a').removeAttr('onclick').click(function() { return false; }); 
     28  $(a, tab).removeAttr('onclick').click(function() { return false; }); 
    1729} 
    1830 
Note: See TracChangeset for help on using the changeset viewer.