Author: vmolotkov
Date: 2007-11-23 07:19:36 -0500 (Fri, 23 Nov 2007)
New Revision: 4216
Modified:
branches/3.1.x/ui/orderingList/src/main/java/org/richfaces/renderkit/OrderingComponentRendererBase.java
branches/3.1.x/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/Control.js
Log:
show/hide of controls was changed
Modified:
branches/3.1.x/ui/orderingList/src/main/java/org/richfaces/renderkit/OrderingComponentRendererBase.java
===================================================================
---
branches/3.1.x/ui/orderingList/src/main/java/org/richfaces/renderkit/OrderingComponentRendererBase.java 2007-11-23
03:16:44 UTC (rev 4215)
+++
branches/3.1.x/ui/orderingList/src/main/java/org/richfaces/renderkit/OrderingComponentRendererBase.java 2007-11-23
12:19:36 UTC (rev 4216)
@@ -211,7 +211,7 @@
writer.startElement(HTML.DIV_ELEM, orderingList);
writer.writeAttribute(HTML.id_ATTRIBUTE, clientId + helper.getIdSuffix(), null);
//FIXME:
- writer.writeAttribute(HTML.class_ATTRIBUTE, "ol_button_border " + (enabled ?
"ol_control_shown" : "ol_control_hidden") + currentStyle, null);
+ writer.writeAttribute(HTML.class_ATTRIBUTE, "ol_button_border " +
currentStyle, null); //HTML.class_ATTRIBUTE, "ol_button_border " + (enabled ?
"ol_control_shown" : "ol_control_hidden") + currentStyle
if (!useFacet) {
writer.startElement(HTML.DIV_ELEM, orderingList);
Modified:
branches/3.1.x/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/Control.js
===================================================================
---
branches/3.1.x/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/Control.js 2007-11-23
03:16:44 UTC (rev 4215)
+++
branches/3.1.x/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/Control.js 2007-11-23
12:19:36 UTC (rev 4216)
@@ -8,12 +8,12 @@
//this.isShown ? this.doShow() : this.doHide();
}
-Control.CLASSES = {
+/*Control.CLASSES = {
first : {hidden : "ol_button_border ol_control_hidden", shown :
"ol_button_border ol_control_shown"},
down : {hidden : "ol_button_border ol_control_hidden", shown :
"ol_button_border ol_control_shown"},
up : {hidden : "ol_button_border ol_control_hidden", shown :
"ol_button_border ol_control_shown"},
last : {hidden : "ol_button_border ol_control_hidden", shown :
"ol_button_border ol_control_shown"}
-};
+};*/
Control.prototype.doShow = function() {
this.isShown = true;
@@ -45,11 +45,13 @@
}
Control.prototype.doHideNode = function(node) {
- node.className = Control.CLASSES[this.action].hidden;
+ //node.className = Control.CLASSES[this.action].hidden;
+ node.hide();
}
Control.prototype.doShowNode = function(node) {
- node.className = Control.CLASSES[this.action].shown;
+ //node.className = Control.CLASSES[this.action].shown;
+ node.show();
}
Show replies by date