Author: vmolotkov
Date: 2008-02-26 08:49:28 -0500 (Tue, 26 Feb 2008)
New Revision: 6348
Modified:
trunk/sandbox/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/css/inplaceselect.xcss
trunk/sandbox/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js
trunk/sandbox/ui/inplaceSelect/src/main/templates/inplaceselect.jspx
Log:
latest changes
Modified:
trunk/sandbox/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/css/inplaceselect.xcss
===================================================================
---
trunk/sandbox/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/css/inplaceselect.xcss 2008-02-26
13:45:05 UTC (rev 6347)
+++
trunk/sandbox/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/css/inplaceselect.xcss 2008-02-26
13:49:28 UTC (rev 6348)
@@ -35,11 +35,9 @@
padding : 0px 0px 0px 0px;
border-width: 1px;
margin : 0px;
-/* position : absolute; */
- top:0px;
- left : 0px;
background-position : center right;
- background-repeat : no-repeat;
+ background-repeat : no-repeat;*/
+ background:#FFF281 none repeat scroll 0%;
}
.rich-inplace-select-strut{
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-26
13:45:05 UTC (rev 6347)
+++
trunk/sandbox/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js 2008-02-26
13:49:28 UTC (rev 6348)
@@ -8,7 +8,6 @@
initHandlers : function($super) {
$super();
- this.tempValueKeeper.observe("blur",
function(e){this.tmpValueBlurHandler(e);}.bindAsEventListener(this));
this.tempValueKeeper.observe("click",
function(e){this.tempKeeperClickHandler(e);}.bindAsEventListener(this));
this.tempValueKeeper.observe("keydown",
function(e){this.tmpValueKeyDownHandler(e);}.bindAsEventListener(this));
@@ -17,6 +16,11 @@
this.comboList.listParent.observe("click",
function(e){this.listClickHandler(e);}.bindAsEventListener(this));
},
+ switchingStatesHandler : function($super, e) {
+ $super(e);
+ this.tempValueKeeper.focus();
+ },
+
tempKeeperClickHandler : function() {
this.comboList.isList = false;
this.comboList.showWithDelay();
@@ -24,15 +28,17 @@
tmpValueBlurHandler : function($super, event) {
$super(event);
- /*if (this.comboList.isList) {
- this.tempValueKeeper.focus();
- } */
- this.comboList.hideWithDelay();
+
+ if (!this.comboList.isList || this.clickOnBar) {
+ this.comboList.hideWithDelay();
+ }
+ this.comboList.isList = false;
+ /*this.comboList.hideWithDelay();*/
+
},
listClickHandler : function(event) {
this.tempValueKeeper.focus();
- //this.inputProcessing();
this.comboList.hideWithDelay();
},
Modified: trunk/sandbox/ui/inplaceSelect/src/main/templates/inplaceselect.jspx
===================================================================
--- trunk/sandbox/ui/inplaceSelect/src/main/templates/inplaceselect.jspx 2008-02-26
13:45:05 UTC (rev 6347)
+++ trunk/sandbox/ui/inplaceSelect/src/main/templates/inplaceselect.jspx 2008-02-26
13:49:28 UTC (rev 6348)
@@ -63,7 +63,7 @@
<span id="#{clientId}" class="rich-inplace-select-default-state"
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" style="display: none"/>
+ <img id="#{clientId}inplaceStrut" src="#{spacer}"
class="rich-inplace-select-strut"/>
<input id="#{clientId}inplaceTmpValue"
type="text"
style='display:none;'
@@ -71,6 +71,7 @@
autocomplete="off"
maxlength='#{component.attributes["inputMaxLength"]}'
tabindex='#{component.attributes["tabindex"]}'
+ readonly="readonly"
class="rich-inplace-select-field"/>
<input id='#{clientId}inplaceValue' name='#{clientId}inplaceValue'
type='hidden' value='#{fieldValue}'/>
<div id="#{clientId}bar" class="rich-inplace-select-btn-set"
style="display:none;">
Show replies by date