Author: abelevich
Date: 2008-01-14 04:22:33 -0500 (Mon, 14 Jan 2008)
New Revision: 5338
Modified:
trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combobox.js
Log:
fix button hover
Modified:
trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combobox.js
===================================================================
---
trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combobox.js 2008-01-14
09:22:17 UTC (rev 5337)
+++
trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combobox.js 2008-01-14
09:22:33 UTC (rev 5338)
@@ -248,12 +248,16 @@
},
isActive : function() {
- return (this.field.className == this.classes.FIELD.ACTIVE);
+ return (this.field.className == this.classes.FIELD.CLASSES.ACTIVE);
},
doActive : function() {
- this.button.className = this.classes.BUTTON.CLASSES.ACTIVE + " " +
this.classes.BUTTON.CLASSES.HOVERED;
+ if (this.button.className.indexOf(this.classes.BUTTON.CLASSES.HOVERED) != -1) {
+ this.button.className = this.classes.BUTTON.CLASSES.ACTIVE + " " +
this.classes.BUTTON.CLASSES.HOVERED;
+ } else {
+ this.button.className = this.classes.BUTTON.CLASSES.ACTIVE ;
+ }
this.field.className = this.classes.FIELD.CLASSES.ACTIVE;
this.buttonBG.className = this.classes.BUTTONBG.CLASSES.ACTIVE;
this.isDisabled = false;