Author: vmolotkov
Date: 2008-03-25 15:17:35 -0400 (Tue, 25 Mar 2008)
New Revision: 7234
Modified:
trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js
Log:
RF-2683: inplaceSelect should be selectOne
Modified:
trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js
===================================================================
---
trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js 2008-03-25
19:17:31 UTC (rev 7233)
+++
trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js 2008-03-25
19:17:35 UTC (rev 7234)
@@ -136,7 +136,7 @@
}
if (!this.attributes.showControls) {
- this.save();
+ this.saveValue();
}
},
@@ -150,7 +150,7 @@
this.tempValueKeeper.blur();
break;
case Event.KEY_TAB :
- this.save();
+ this.saveValue();
this.byTab = true;
break;
}
@@ -161,7 +161,7 @@
},*/
okHandler : function(e) {
- this.save();
+ this.saveValue();
Event.stop(e);
},
@@ -276,8 +276,13 @@
}
},
- save : function() {
+ saveValue : function() {
var userValue = this.tempValueKeeper.value;
+ var currentText = userValue;
+ this.save(userValue, currentText);
+ },
+
+ save : function(userValue, currentText) {
var value = this.valueKeeper.value;
if (this.events.onviewactivation) {
this.inplaceInput.fire("rich:onviewactivation", {oldValue :
this.valueKeeper.value, value : this.tempValueKeeper.value});
@@ -288,7 +293,7 @@
this.valueKeeper.value = "";
//this.startViewState();
} else {
- this.currentText = userValue;
+ this.currentText = currentText;
this.valueKeeper.value = userValue;
}
if (userValue != this.value) {
Show replies by date