Changeset a4e71c5 in github


Ignore:
Timestamp:
Feb 1, 2012 2:40:30 AM (16 months ago)
Author:
thomascube <thomas@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.8
Children:
3a86e267
Parents:
6835114
Message:

Improve tabs and splitter functionality

File:
1 edited

Legend:

Unmodified
Added
Removed
  • skins/larry/ui.js

    r5ff7ba4 ra4e71c5  
    713713  function init_tabs(elem, current) 
    714714  { 
    715     var id = elem.id, 
    716       content = $(elem), 
     715    var content = $(elem), 
     716      id = content.get(0).id, 
    717717      fs = content.children('fieldset'); 
    718718 
     
    722722    if (!id) { 
    723723      id = 'rcmtabcontainer'; 
    724       elem.attr('id', id); 
     724      content.attr('id', id); 
    725725    } 
    726726 
     
    799799 
    800800/** 
    801  * Roundcube splitter GUI class 
     801 * Roundcube UI splitter class 
    802802 * 
    803803 * @constructor 
     
    824824    this.p2 = $(this.p.p2); 
    825825 
     826    // check if referenced elements exist, otherwise abort 
     827    if (!this.p1.length || !this.p2.length) 
     828      return; 
     829 
    826830    // create and position the handle for this splitter 
    827831    this.p1pos = this.relative ? this.p1.position() : this.p1.offset(); 
     
    843847    } 
    844848 
    845     this.elm = this.handle.get(0); 
    846  
    847849    // listen to window resize on IE 
    848850    if (bw.ie) 
    849       $(window).resize(function(e){ onResize(e) }); 
     851      $(window).resize(onResize); 
    850852 
    851853    // read saved position from cookie 
Note: See TracChangeset for help on using the changeset viewer.