Author: vmolotkov
Date: 2008-02-21 10:10:08 -0500 (Thu, 21 Feb 2008)
New Revision: 6250
Modified:
trunk/sandbox/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselectlist.js
trunk/sandbox/ui/inplaceSelect/src/main/templates/inplaceselect.jspx
Log:
component's corrected
Modified:
trunk/sandbox/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselectlist.js
===================================================================
---
trunk/sandbox/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselectlist.js 2008-02-21
15:07:01 UTC (rev 6249)
+++
trunk/sandbox/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselectlist.js 2008-02-21
15:10:08 UTC (rev 6250)
@@ -32,5 +32,25 @@
this.iframe.style.top = top + "px";
this.iframe.style.left = 0 + "px";
}
+ },
+
+ show : function($super) {
+ $super();
+ },
+
+ resetState : function() {
+ //var tempList = this.list.cloneNode(false);
+ //this.listParent.childNodes[1].firstChild.replaceChild(tempList, this.list);
+ //this.list = $(tempList.id);
+ this.activeItem = null;
+ this.isList = false;
+ },
+
+ getEventItem : function(event) {
+ var item = Event.findElement(event, "span");
+ if (this.listParent.parentNode.id == item.id) {
+ return;
+ }
+ return item;
}
});
Modified: trunk/sandbox/ui/inplaceSelect/src/main/templates/inplaceselect.jspx
===================================================================
--- trunk/sandbox/ui/inplaceSelect/src/main/templates/inplaceselect.jspx 2008-02-21
15:07:01 UTC (rev 6249)
+++ trunk/sandbox/ui/inplaceSelect/src/main/templates/inplaceselect.jspx 2008-02-21
15:10:08 UTC (rev 6250)
@@ -172,7 +172,7 @@
oneditactivated : #{this:getAsEventHandler(context, component,
"oneditactivated")},
onviewactivated : #{this:getAsEventHandler(context, component,
"onviewactivated")}};
- var richInplaceList = new Richfaces.InplaceSelectList('list#{clientId}',
'listParent#{clientId}', false,
+ var richInplaceList = new Richfaces.InplaceSelectList('list#{clientId}',
'listParent#{clientId}', true,
Richfaces.InplaceSelect.CLASSES.COMBO_LIST, '100px',
'100px', #{this:getItemsTextAsJSArray(context, component)}, null,
'#{clientId}inplaceTmpValue', 'shadow#{clientId}', 0, 0);
var richInplaceSelect = new Richfaces.InplaceSelect(richInplaceList,
'#{clientId}', '#{clientId}inplaceTmpValue',
Show replies by date