mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-30 15:45:26 +00:00
Monotone-Parent: b7f03c552580612d21be004dd0d73f3125fe3bcb
Monotone-Revision: f62c33ecad89ce9cd2887ae7f9c44c0e5d2eb834 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-10-26T22:00:54 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -970,7 +970,7 @@ function initTabs()
|
||||
container.activeTab = firstTab;
|
||||
|
||||
var target = $(firstTab.getAttribute("target"));
|
||||
target.style.visibility = "visible;";
|
||||
target.addClassName("active");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -987,17 +987,17 @@ function onTabClick(event) {
|
||||
var node = event.target;
|
||||
|
||||
var target = node.getAttribute("target");
|
||||
|
||||
var container = node.parentNode.parentNode;
|
||||
var oldTarget = container.activeTab.getAttribute("target");
|
||||
var content = $(target);
|
||||
var oldContent = $(oldTarget);
|
||||
|
||||
oldContent.removeClassName("active");
|
||||
container.activeTab.removeClassName("active");
|
||||
container.activeTab = node;
|
||||
container.activeTab.addClassName("active");
|
||||
|
||||
oldContent.style.visibility = "hidden;";
|
||||
content.style.visibility = "visible;";
|
||||
content.addClassName("active");
|
||||
|
||||
return false;
|
||||
}
|
||||
@@ -1031,8 +1031,8 @@ function disableAnchor(anchor) {
|
||||
if (onclick)
|
||||
anchor.setAttribute("disabled-onclick", onclick);
|
||||
anchor.addClassName("_disabled");
|
||||
anchor.setAttribute("href", null);
|
||||
anchor.setAttribute("onclick", null);
|
||||
anchor.setAttribute("href", "#");
|
||||
anchor.setAttribute("onclick", "return false;");
|
||||
anchor.disabled = 1;
|
||||
anchor.enabled = 0;
|
||||
}
|
||||
@@ -1220,6 +1220,24 @@ String.prototype.decodeEntities = function() {
|
||||
});
|
||||
}
|
||||
|
||||
HTMLInputElement.prototype._replicate = function() {
|
||||
this.replica.value = this.value;
|
||||
}
|
||||
|
||||
HTMLInputElement.prototype.assignReplica = function(otherInput) {
|
||||
this.replica = otherInput;
|
||||
this.addEventListener("change", this._replicate, false);
|
||||
}
|
||||
|
||||
HTMLSelectElement.prototype._replicate = function() {
|
||||
this.replica.value = this.value;
|
||||
}
|
||||
|
||||
HTMLSelectElement.prototype.assignReplica = function(otherSelect) {
|
||||
this.replica = otherSelect;
|
||||
this.addEventListener("change", this._replicate, false);
|
||||
}
|
||||
|
||||
function d2h(d) {
|
||||
var hD = "0123456789abcdef";
|
||||
var h = hD.substr(d&15,1);
|
||||
|
||||
Reference in New Issue
Block a user