[richfaces-svn-commits] JBoss Rich Faces SVN: r5387 - in trunk/sandbox/ui/combobox/src/main: templates and 1 other directory.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Tue Jan 15 10:55:13 EST 2008


Author: abelevich
Date: 2008-01-15 10:55:13 -0500 (Tue, 15 Jan 2008)
New Revision: 5387

Modified:
   trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combobox.js
   trunk/sandbox/ui/combobox/src/main/templates/combobox.jspx
Log:
fix pressed background

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-15 15:54:39 UTC (rev 5386)
+++ trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combobox.js	2008-01-15 15:55:13 UTC (rev 5387)
@@ -79,10 +79,14 @@
 	},
 	
 	buttonMouseUpHandler : function(e) {
-		this.field.focus();			
+		this.buttonBG.className = "rich-combobox-font rich-combobox-button-background rich-combobox-button";
+		this.button.className = this.classes.BUTTON.CLASSES.ACTIVE + " rich-combobox-button-hovered";
+		this.field.focus();	
 	},
 	
 	buttonMousedownHandler : function(e) {
+		this.buttonBG.className = "rich-combobox-font rich-combobox-button-pressed-background rich-combobox-button";
+		this.button.className = this.classes.BUTTON.CLASSES.ACTIVE + " rich-combobox-button-hovered";
 		this.comboList.isList = true;
 	},
 	
@@ -100,6 +104,7 @@
 	},
 	
 	buttonMouseOutHandler : function(e) {
+		window.status = "mouseout";
 		var classCss = this.classes.BUTTON.CLASSES;
 		var iconStyles = this.classes.BUTTONICON.STYLE;
 		
@@ -298,7 +303,6 @@
 		this.button.style.backgroundImage = iconStyles.ACTIVE;
 		
 		this.field.className = this.classes.FIELD.CLASSES.ACTIVE;
- 		this.buttonBG.className = this.classes.BUTTONBG.CLASSES.ACTIVE;
  		this.isDisabled = false;
 	},
 	

Modified: trunk/sandbox/ui/combobox/src/main/templates/combobox.jspx
===================================================================
--- trunk/sandbox/ui/combobox/src/main/templates/combobox.jspx	2008-01-15 15:54:39 UTC (rev 5386)
+++ trunk/sandbox/ui/combobox/src/main/templates/combobox.jspx	2008-01-15 15:55:13 UTC (rev 5387)
@@ -210,9 +210,7 @@
 				   />
 			<input id="comboBoxButtonBG#{clientId}" readonly="true" type="text" value="" class="rich-combobox-font-inactive rich-combobox-button-background rich-combobox-button-inactive"/>
 			<input id="comboboxButton#{clientId}" readonly="true" disabled="#{disabled}" type="text" value="" style="#{buttonStyle}; background-image: #{buttonIconNormal};" 
-				   class="rich-combobox-font-inactive rich-combobox-button-icon-inactive rich-combobox-button-inactive #{buttonDisabledClass}" 
-				   onmousedown="document.getElementById('comboBoxButtonBG#{clientId}').className='rich-combobox-font rich-combobox-button-pressed-background rich-combobox-button';"
-				   onmouseup="document.getElementById('comboBoxButtonBG#{clientId}').className='rich-combobox-font rich-combobox-button-background rich-combobox-button';"/>
+				   class="rich-combobox-font-inactive rich-combobox-button-icon-inactive rich-combobox-button-inactive #{buttonDisabledClass}"/>
 						   
 			<input type="text" class="rich-combobox-strut rich-combobox-font" style="width:#{width}"/>
 		</div>




More information about the richfaces-svn-commits mailing list