mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-25 21:35:23 +00:00
Monotone-Parent: f90d169fbc251326ea6c8a2f620e125a8a7b4168
Monotone-Revision: 7786f49f6724383b92e91ba7998b99cfb52ceec3 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2012-04-20T13:27:21
This commit is contained in:
@@ -1,5 +1,18 @@
|
||||
/* -*- Mode: java; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
||||
|
||||
if (NodeList) {
|
||||
var _each = NodeList.prototype.forEach;
|
||||
if (!_each) {
|
||||
_each = function NodeList_each(iterator, context) {
|
||||
for (var i = 0, length = this.length >>> 0; i < length; i++) {
|
||||
if (i in this) iterator.call(context, this[i], i, this);
|
||||
}
|
||||
};
|
||||
}
|
||||
NodeList.prototype._each = _each;
|
||||
Object.extend(NodeList.prototype, Enumerable);
|
||||
}
|
||||
|
||||
/* custom extensions to the DOM api */
|
||||
Element.addMethods({
|
||||
addInterface: function(element, objectInterface) {
|
||||
|
||||
@@ -657,16 +657,15 @@ function onMailAccountEntryClick(event) {
|
||||
|
||||
function displayMailAccount(mailAccount, readOnly) {
|
||||
var fieldSet = $("accountInfo");
|
||||
var inputs = fieldSet.getElementsByTagName("input");
|
||||
for (var i = 0; i < inputs.length; i++) {
|
||||
inputs[i].disabled = readOnly;
|
||||
inputs[i].mailAccount = mailAccount;
|
||||
}
|
||||
var inputs = $(fieldSet.getElementsByTagName("input"));
|
||||
inputs.each(function (i) { i.disabled = readOnly;
|
||||
i.mailAccount = mailAccount; });
|
||||
|
||||
fieldSet = $("identityInfo");
|
||||
inputs = fieldSet.getElementsByTagName("input");
|
||||
for (var i = 0; i < inputs.length; i++) {
|
||||
inputs = $(fieldSet.getElementsByTagName("input"));
|
||||
inputs.each(function (i) { i.mailAccount = mailAccount; });
|
||||
for (var i = 0; i < 2; i++) {
|
||||
inputs[i].disabled = readOnly;
|
||||
inputs[i].mailAccount = mailAccount;
|
||||
}
|
||||
|
||||
var form = $("mainForm");
|
||||
@@ -701,6 +700,7 @@ function displayMailAccount(mailAccount, readOnly) {
|
||||
: {} );
|
||||
$("fullName").value = identity["fullName"] || "";
|
||||
$("email").value = identity["email"] || "";
|
||||
$("replyTo").value = identity["replyTo"] || "";
|
||||
|
||||
displayAccountSignature(mailAccount);
|
||||
|
||||
|
||||
@@ -1681,13 +1681,10 @@ function onPreferencesClick(event) {
|
||||
}
|
||||
else {
|
||||
var w = window.open(urlstr, "SOGoPreferences",
|
||||
"width=580,height=450,resizable=1,scrollbars=0,location=0");
|
||||
"width=580,height=476,resizable=1,scrollbars=0,location=0");
|
||||
w.opener = window;
|
||||
w.focus();
|
||||
}
|
||||
|
||||
preventDefault(event);
|
||||
return false;
|
||||
}
|
||||
|
||||
function configureLinkBanner() {
|
||||
@@ -1704,7 +1701,7 @@ function configureLinkBanner() {
|
||||
link = $("preferencesBannerLink");
|
||||
if (link) {
|
||||
link.observe("mousedown", listRowMouseDownHandler);
|
||||
link.observe("click", onPreferencesClick);
|
||||
link.observe("click", clickEventWrapper(onPreferencesClick));
|
||||
}
|
||||
link = $("consoleBannerLink");
|
||||
if (link) {
|
||||
|
||||
Reference in New Issue
Block a user