Monotone-Parent: e9ca26d51aa3d10c2258ad11e5ed08cf1cdc234c

Monotone-Revision: 903126052b2bc7a486d1885b2118aad411d1b2f2

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2010-08-04T12:47:07
Monotone-Branch: ca.inverse.sogo
maint-2.0.2
Wolfgang Sourdeau 2010-08-04 12:47:07 +00:00
parent 2f69dee9d6
commit d1912a4089
2 changed files with 10 additions and 11 deletions

View File

@ -1,3 +1,11 @@
2010-08-04 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* UI/WebServerResources/RowEditionController.js:
(RowEditionController.startEditing): avoid setting the whole
element class. Make use of addClassName/removeClassName instead,
so that classes added/removed via other evt handlers are not
ignored.
2010-08-03 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* SoObjects/SOGo/SOGoUser.m (-_appendSystemMailAccount): new

View File

@ -36,13 +36,7 @@ RowEditionController.prototype = {
startEditing: function REC_startEditing() {
var rowElement = this.rowElement;
rowElement.previousClassName = rowElement.className;
if (rowElement.className.indexOf("_selected") > -1) {
rowElement.className = "editing _selected";
}
else {
rowElement.className = "editing";
}
rowElement.addClassName("editing");
var value = "";
for (var i = 0; i < rowElement.childNodes.length; i++) {
@ -51,7 +45,6 @@ RowEditionController.prototype = {
value += child.nodeValue;
}
}
log("initial Value: " + value);
this.initialValue = value;
this.emptyRow();
@ -82,8 +75,7 @@ RowEditionController.prototype = {
this.textField = null;
this.emptyRow();
var rowElement = this.rowElement;
rowElement.className = rowElement.previousClassName;
rowElement.previousClassName = null;
rowElement.removeClassName("editing");
rowElement.appendChild(document.createTextNode(displayValue));
this.initialValue = null;
@ -111,7 +103,6 @@ RowEditionController.prototype = {
/* event handlers */
onRowDblClick: function REC_onRowDblClick(event) {
log("onRowDblClick");
if (!this.textField) {
this.startEditing();
event.stop();