Author: vmolotkov
Date: 2008-03-10 11:08:28 -0400 (Mon, 10 Mar 2008)
New Revision: 6650
Modified:
trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js
trunk/ui/inplaceInput/src/main/templates/inplaceinput.jspx
Log:
strut is deleted
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-10
15:08:13 UTC (rev 6649)
+++
trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js 2008-03-10
15:08:28 UTC (rev 6650)
@@ -4,7 +4,7 @@
Richfaces.InplaceInput.prototype = {
- initialize: function(clientId, temValueKeepId, valueKeepId, tabberId, strutId,
attributes, events, classes, barParams) {
+ initialize: function(clientId, temValueKeepId, valueKeepId, tabberId, attributes,
events, classes, barParams) {
this.inplaceInput = $(clientId);
this.inplaceInput.component = this;
@@ -12,7 +12,6 @@
this.valueKeeper = $(valueKeepId);
this.attributes = attributes;
this.tabber = $(tabberId);
- //this.strut = $(strutId);
this.events = events;
this.classes = classes;
@@ -186,7 +185,6 @@
this.tabber.hide();
this.tempValueKeeper.show();
- //this.setStrutWidth(textSize);
this.inplaceInput.className = this.classes.COMPONENT.EDITABLE;
if (this.bar) {
@@ -199,12 +197,6 @@
this.tempValueKeeper.focus();
},
- /*setStrutWidth : function(textSize) {
- this.tempValueKeeper.show();
- this.strut.style.width = textSize + "px";
- this.strut.show();
- },*/
-
startViewState : function() {
this.deleteViewArtifacts();
this.changeState(Richfaces.InplaceInput.STATES[0]);
@@ -212,8 +204,6 @@
this.createNewText(this.currentText);
this.inplaceInput.className = this.classes.COMPONENT.VIEW.NORMAL;
this.inplaceInput.observe("mouseover",
function(e){this.inplaceMouseOverHandler(e);}.bindAsEventListener(this));
-
- //this.strut.hide();
},
startChangedState : function () {
@@ -224,7 +214,6 @@
//this.createNewText(this.valueKeeper.value);
this.createNewText(this.currentText);
this.inplaceInput.className = this.classes.COMPONENT.CHANGED.NORMAL;
- //this.strut.hide();
},
/**
@@ -320,14 +309,14 @@
},
deleteViewArtifacts : function () {
- var text = this.inplaceInput.childNodes[5];
+ var text = this.inplaceInput.childNodes[4];
if (text) {
this.inplaceInput.removeChild(text);
}
},
getCurrentText : function() {
- return this.inplaceInput.childNodes[5];
+ return this.inplaceInput.childNodes[4];
},
createNewText : function(text) {
Modified: trunk/ui/inplaceInput/src/main/templates/inplaceinput.jspx
===================================================================
--- trunk/ui/inplaceInput/src/main/templates/inplaceinput.jspx 2008-03-10 15:08:13 UTC
(rev 6649)
+++ trunk/ui/inplaceInput/src/main/templates/inplaceinput.jspx 2008-03-10 15:08:28 UTC
(rev 6650)
@@ -60,7 +60,6 @@
<span id="#{clientId}" class='rich-inplace rich-inplace-view
#{component.attributes["styleClass"]}'
x:passThruWithExclusions="id,styleClass,class,style">
<input id="#{clientId}tabber" type="button" value=""
style="width: 1px; position: absolute; left: -32767px;" />
- <!-- img id="#{clientId}strut" src="#{spacer}"
class="rich-inplace-input-strut"/-->
<input id='#{clientId}tempValue'
class='rich-inplace-field'
style='display:none;'
@@ -150,7 +149,7 @@
#{this:encodeInplaceInputCss(context, component)};
var inplaceInput = new Richfaces.InplaceInput('#{clientId}',
'#{clientId}tempValue', '#{clientId}value', '#{clientId}tabber',
- '#{clientId}strut', attributes, events, classes,
['#{clientId}bar',
+ attributes, events, classes, ['#{clientId}bar',
'#{clientId}ok', '#{clientId}cancel',
'#{clientId}buttons','#{clientId}btns_shadow']);
</script>
</f:root>
\ No newline at end of file