merge of '7e80d62d21237dc99d74c702f53f591b1fd10acc'

and '903126052b2bc7a486d1885b2118aad411d1b2f2'

Monotone-Parent: 7e80d62d21237dc99d74c702f53f591b1fd10acc
Monotone-Parent: 903126052b2bc7a486d1885b2118aad411d1b2f2
Monotone-Revision: 96aed5aa92f481740bda8d0b5c68aa4b21c762f0

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2010-08-04T20:38:22
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2010-08-04 20:38:22 +00:00
2 changed files with 10 additions and 11 deletions

View File

@@ -7,6 +7,14 @@
* UI/WebServerResources/ContactsUI.js: replaced window.confirm by
a CSS modal dialog.
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();