thomascube
2012-02-15 19b34b7058117832de44682a7d3eb4ada9859be4
skins/larry/ui.js
@@ -712,8 +712,8 @@
   */
  function init_tabs(elem, current)
  {
    var id = elem.id,
      content = $(elem),
    var content = $(elem),
      id = content.get(0).id,
      fs = content.children('fieldset');
    if (!fs.length)
@@ -721,7 +721,7 @@
    if (!id) {
      id = 'rcmtabcontainer';
      elem.attr('id', id);
      content.attr('id', id);
    }
    // first hide not selected tabs
@@ -772,6 +772,7 @@
  {
    var frame = $('<iframe>').attr('id', 'aboutframe')
      .attr('src', rcmail.url('settings/about'))
      .attr('frameborder', '0')
      .appendTo(document.body);
    var h = Math.floor($(window).height() * 0.75);
@@ -798,7 +799,7 @@
/**
 * Roundcube splitter GUI class
 * Roundcube UI splitter class
 *
 * @constructor
 */
@@ -817,11 +818,16 @@
  this.callback = p.callback;
  var me = this;
  rcube_splitter._instances[this.id] = me;
  this.init = function()
  {
    this.p1 = $(this.p.p1);
    this.p2 = $(this.p.p2);
    // check if referenced elements exist, otherwise abort
    if (!this.p1.length || !this.p2.length)
      return;
    // create and position the handle for this splitter
    this.p1pos = this.relative ? this.p1.position() : this.p1.offset();
@@ -842,11 +848,9 @@
      this.handle.css({ left:left+'px', top:'0px' });
    }
    this.elm = this.handle.get(0);
    // listen to window resize on IE
    if (bw.ie)
      $(window).resize(function(e){ onResize(e) });
      $(window).resize(onResize);
    // read saved position from cookie
    var cookie = bw.get_cookie(this.id);
@@ -1016,3 +1020,11 @@
} // end class rcube_splitter
// static getter for splitter instances
rcube_splitter._instances = {};
rcube_splitter.get_instance = function(id)
{
  return rcube_splitter._instances[id];
};