Author: vmolotkov
Date: 2008-02-22 15:10:42 -0500 (Fri, 22 Feb 2008)
New Revision: 6313
Modified:
trunk/sandbox/ui/inplaceSelect/src/main/config/component/inplaceselect.xml
trunk/sandbox/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js
trunk/sandbox/ui/inplaceSelect/src/main/templates/inplaceselect.jspx
Log:
cosmetic changes
Modified: trunk/sandbox/ui/inplaceSelect/src/main/config/component/inplaceselect.xml
===================================================================
--- trunk/sandbox/ui/inplaceSelect/src/main/config/component/inplaceselect.xml 2008-02-22
18:57:47 UTC (rev 6312)
+++ trunk/sandbox/ui/inplaceSelect/src/main/config/component/inplaceselect.xml 2008-02-22
20:10:42 UTC (rev 6313)
@@ -38,13 +38,13 @@
<name>maxSelectWidth</name>
<classname>java.lang.String</classname>
<description></description>
- <defaultvalue><![CDATA[""]]></defaultvalue>
+ <defaultvalue><![CDATA["200"]]></defaultvalue>
</property>
<property>
<name>minSelectWidth</name>
<classname>java.lang.String</classname>
<description></description>
- <defaultvalue><![CDATA[""]]></defaultvalue>
+ <defaultvalue><![CDATA["100"]]></defaultvalue>
</property>
<property>
<name>selectWidth</name>
Modified:
trunk/sandbox/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js
===================================================================
---
trunk/sandbox/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js 2008-02-22
18:57:47 UTC (rev 6312)
+++
trunk/sandbox/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js 2008-02-22
20:10:42 UTC (rev 6313)
@@ -3,6 +3,7 @@
initialize : function($super, listObj, clientId, temValueKeepId, valueKeepId, tabberId,
strutId, attributes, events, classes, barParams) {
this.comboList = listObj;
$super(clientId, temValueKeepId, valueKeepId, tabberId, strutId, attributes, events,
classes, barParams);
+ this.clickOnBar = false;
},
initHandlers : function($super) {
@@ -22,7 +23,10 @@
tmpValueBlurHandler : function($super, event) {
$super(event);
- this.comboList.hideWithDelay();
+ /*if (this.comboList.isList) {
+ this.tempValueKeeper.focus();
+ }
+ this.comboList.hideWithDelay();*/
},
listClickHandler : function(event) {
@@ -79,9 +83,9 @@
this.tempValueKeeper.value = userValue;
this.comboList.selectedItem = this.comboList.activeItem;
}
- if (!this.comboList.isList || this.clickOnBar) {
+ /*if (!this.comboList.isList || this.clickOnBar) {
$super();
- }
+ }*/
},
deleteViewArtifacts : function () {
Modified: trunk/sandbox/ui/inplaceSelect/src/main/templates/inplaceselect.jspx
===================================================================
--- trunk/sandbox/ui/inplaceSelect/src/main/templates/inplaceselect.jspx 2008-02-22
18:57:47 UTC (rev 6312)
+++ trunk/sandbox/ui/inplaceSelect/src/main/templates/inplaceselect.jspx 2008-02-22
20:10:42 UTC (rev 6313)
@@ -65,7 +65,6 @@
<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" style="display: none"/>
<input id="#{clientId}inplaceTmpValue"
- readonly="readonly"
type="text"
style='display:none;'
value="#{fieldValue}"
@@ -164,8 +163,8 @@
verticalPosition :
'#{component.attributes["controlsPosition"]}',
horizontalPosition :
'#{component.attributes["controlsHorizontalAlign"]}',
inputWidth : '#{component.attributes["inputWidth"]}',
- inputMinWidth : '#{component.attributes["inputMinWidth"]}',
- inputMaxWidth : '#{component.attributes["inputMaxWidth"]}'
+ inputMinWidth : '#{component.attributes["minSelectWidth"]}',
+ inputMaxWidth : '#{component.attributes["maxSelectWidth"]}'
};
var richInplaceSelEvents = {oneditactivation : #{this:getAsEventHandler(context,
component, "oneditactivation")},
Show replies by date