See ChangeLog

Monotone-Parent: eb22f4d3b368a79ce56bcad18f9f176fff0cb73c
Monotone-Revision: 157670819f732591d0987b295faeb89c843803db

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2012-09-07T19:46:49
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle
2012-09-07 19:46:49 +00:00
parent 613499c63a
commit e7f0c9c03f
38 changed files with 389 additions and 259 deletions
+8 -4
View File
@@ -83,17 +83,20 @@ SOGoTabsController.prototype = {
currentNode.observe("mousedown",
this.onTabMouseDownBound, false);
currentNode.observe("click", this.onTabClickBound, false);
if (currentNode.hasClassName("active"))
this.activeTab = currentNode;
//$(currentNode.getAttribute("target")).hide();
}
this.firstTab.addClassName("first");
this.firstTab.addClassName("active");
this.activeTab = this.firstTab;
if (this.activeTab == null) {
this.activeTab = this.firstTab;
this.activeTab.addClassName("active");
}
var last = nodes.length - 1;
this.lastTab = $(nodes[last]);
var target = $(this.firstTab.getAttribute("target"));
var target = $(this.activeTab.getAttribute("target"));
target.addClassName("active");
}
this.onWindowResizeBound = this.onWindowResize.bindAsEventListener(this);
@@ -141,6 +144,7 @@ SOGoTabsController.prototype = {
this.activeTab = $(clickedTab);
this.activeTab.addClassName("active"); // current LI
content.addClassName("active");
this.activeTab.fire("tabs:click", content.id);
// Prototype alternative