Author: abelevich
Date: 2008-02-25 09:02:18 -0500 (Mon, 25 Feb 2008)
New Revision: 6321
Modified:
trunk/sandbox/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/css/inplaceinput.xcss
trunk/sandbox/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js
trunk/sandbox/ui/inplaceInput/src/main/templates/inplaceinput.jspx
Log:
fix styles for buttons, add IE6 check then displaying buttons shadow
Modified:
trunk/sandbox/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/css/inplaceinput.xcss
===================================================================
---
trunk/sandbox/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/css/inplaceinput.xcss 2008-02-25
12:22:26 UTC (rev 6320)
+++
trunk/sandbox/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/css/inplaceinput.xcss 2008-02-25
14:02:18 UTC (rev 6321)
@@ -109,14 +109,14 @@
</u:style>
</u:selector>
- <u:selector name=".rich-inplace-control">
+ <u:selector name=".rich-inplace-button">
<u:style name="background-image">
<f:resource
f:key="org.richfaces.renderkit.html.images.SpinnerButtonGradient"/>
</u:style>
</u:selector>
- <u:selector name=".rich-inplace-control-press">
+ <u:selector name=".rich-inplace-button-press">
<u:style name="background-image">
<f:resource
f:key="org.richfaces.renderkit.html.images.ComboBoxButtonPressGradient"/>
</u:style>
Modified:
trunk/sandbox/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js
===================================================================
---
trunk/sandbox/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js 2008-02-25
12:22:26 UTC (rev 6320)
+++
trunk/sandbox/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js 2008-02-25
14:02:18 UTC (rev 6321)
@@ -24,7 +24,7 @@
this.prevState = Richfaces.InplaceInput.STATES[0];
if (this.attributes.showControls) {
- this.bar = new Richfaces.InplaceInputBar(barParams[0], barParams[1], barParams[2],
barParams[3],
+ this.bar = new Richfaces.InplaceInputBar(barParams[0], barParams[1], barParams[2],
barParams[3], barParams[4],
this.attributes.verticalPosition, this.attributes.horizontalPosition);
}
this.initHandlers();
@@ -298,11 +298,12 @@
Richfaces.InplaceInputBar = Class.create();
Richfaces.InplaceInputBar.prototype = {
- initialize : function(barId, okId, cancelId, buttonsPanelId, verticalPosition,
horizontalPosition) {
+ initialize : function(barId, okId, cancelId, buttonsPanelId, buttonsShadowId,
verticalPosition, horizontalPosition) {
this.bar = $(barId);
this.ok = $(okId);
this.cancel = $(cancelId);
this.bsPanel = $(buttonsPanelId);
+ this.buttonsShadow = $(buttonsShadowId);
this.verticalPosition = verticalPosition;
this.horizontalPosition = horizontalPosition;
@@ -324,6 +325,9 @@
show : function(inpWidth, inpHeight) {
this.positioning(inpWidth, inpHeight);
+ if (Richfaces.browser.isIE6) {
+ this.buttonsShadow.style.visibility = "hidden";
+ }
this.bar.show();
},
Modified: trunk/sandbox/ui/inplaceInput/src/main/templates/inplaceinput.jspx
===================================================================
--- trunk/sandbox/ui/inplaceInput/src/main/templates/inplaceinput.jspx 2008-02-25 12:22:26
UTC (rev 6320)
+++ trunk/sandbox/ui/inplaceInput/src/main/templates/inplaceinput.jspx 2008-02-25 14:02:18
UTC (rev 6321)
@@ -15,6 +15,7 @@
<h:scripts>
new org.ajax4jsf.javascript.PrototypeScript(),
scripts/inplaceinput.js
+ scripts/utils.js
</h:scripts>
<f:resource var="saveIcon"
name="org.richfaces.renderkit.html.images.SaveControlIcon"/>
<f:resource var="cancelIcon"
name="org.richfaces.renderkit.html.images.CancelControlIcon"/>
@@ -96,7 +97,7 @@
} else {
]]>
</jsp:scriptlet>
- <div class="rich-inplace-shadow">
+ <div id="#{clientId}btns_shadow"
class="rich-inplace-shadow">
<table class="rich-inplace-shadow-size" cellspacing="0"
cellpadding="0" border="0">
<tbody>
<tr>
@@ -169,6 +170,6 @@
EDITABLE : 'rich-inplace rich-inplace-edit
#{component.attributes["editClass"]}'}
};
- var inplaceInput = new Richfaces.InplaceInput('#{clientId}',
'#{clientId}tempValue', '#{clientId}value', '#{clientId}tabber',
'#{clientId}strut', attributes, events, Richfaces.InplaceInput.CLASSES,
['#{clientId}bar', '#{clientId}ok', '#{clientId}cancel',
'#{clientId}buttons']);
+ var inplaceInput = new Richfaces.InplaceInput('#{clientId}',
'#{clientId}tempValue', '#{clientId}value', '#{clientId}tabber',
'#{clientId}strut', attributes, events, Richfaces.InplaceInput.CLASSES,
['#{clientId}bar', '#{clientId}ok', '#{clientId}cancel',
'#{clientId}buttons','#{clientId}btns_shadow']);
</script>
</f:root>
\ No newline at end of file