Author: vmolotkov
Date: 2008-03-10 11:08:13 -0400 (Mon, 10 Mar 2008)
New Revision: 6649
Modified:
trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js
trunk/ui/inplaceSelect/src/main/templates/inplaceselect.jspx
Log:
strut is deleted
Modified:
trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js
===================================================================
---
trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js 2008-03-10
14:42:18 UTC (rev 6648)
+++
trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js 2008-03-10
15:08:13 UTC (rev 6649)
@@ -1,9 +1,9 @@
if(!window.Richfaces) window.Richfaces = {};
Richfaces.InplaceSelect = Class.create(Richfaces.InplaceInput, {
- initialize : function($super, listObj, clientId, temValueKeepId, valueKeepId, tabberId,
strutId, attributes, events, classes, barParams, buttonId) {
+ initialize : function($super, listObj, clientId, temValueKeepId, valueKeepId, tabberId,
attributes, events, classes, barParams, buttonId) {
this.comboList = listObj;
this.button = $(buttonId);
- $super(clientId, temValueKeepId, valueKeepId, tabberId, strutId, attributes, events,
classes, barParams);
+ $super(clientId, temValueKeepId, valueKeepId, tabberId, attributes, events, classes,
barParams);
this.clickOnBar = false;
this.button.style.top = Richfaces.getBorderWidth(this.tempValueKeeper, "t") +
"px";
@@ -135,15 +135,13 @@
},
deleteViewArtifacts : function () {
- var text = this.inplaceInput.childNodes[7];
+ var text = this.inplaceInput.childNodes[6];
if (text) {
this.inplaceInput.removeChild(text);
}
},
getCurrentText : function() {
- return this.inplaceInput.childNodes[7];
+ return this.inplaceInput.childNodes[6];
}
-
- //setStrutWidth : function() {}
});
Modified: trunk/ui/inplaceSelect/src/main/templates/inplaceselect.jspx
===================================================================
--- trunk/ui/inplaceSelect/src/main/templates/inplaceselect.jspx 2008-03-10 14:42:18 UTC
(rev 6648)
+++ trunk/ui/inplaceSelect/src/main/templates/inplaceselect.jspx 2008-03-10 15:08:13 UTC
(rev 6649)
@@ -64,7 +64,6 @@
<span id="#{clientId}" class="rich-inplace-select-view"
x:passThruWithExclusions="id,styleClass,class,style">
<input id="#{clientId}tabber" type="button" value=""
style="width: 1px; position: absolute; left: -32767px;" />
- <img id="#{clientId}inplaceStrut" src="#{spacer}"
class="rich-inplace-select-strut"/>
<input id="#{clientId}inplaceTmpValue"
type="text"
style='display:none;'
@@ -182,7 +181,7 @@
Richfaces.InplaceSelect.CLASSES.COMBO_LIST,
'#{component.attributes["listWidth"]}',
'#{component.attributes["listHeight"]}',
#{this:getItemsTextAsJSArray(context, component)}, null,
'#{clientId}inplaceTmpValue', 'shadow#{clientId}', 0, 0);
var richInplaceSelect = new Richfaces.InplaceSelect(richInplaceList,
'#{clientId}', '#{clientId}inplaceTmpValue',
- '#{clientId}inplaceValue', '#{clientId}tabber',
'#{clientId}inplaceStrut',
+ '#{clientId}inplaceValue', '#{clientId}tabber',
richInplaceSelAttributes, richInplaceSelEvents,
Richfaces.InplaceSelect.CLASSES,
['#{clientId}bar', '#{clientId}ok',
'#{clientId}cancel', '#{clientId}buttons',
'#{clientId}btns_shadow'], '#{clientId}inselArrow');
</script>