incubator-xap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmarga...@apache.org
Subject svn commit: r587359 - /incubator/xap/trunk/codebase/src/xap/bridges/xap/ListBoxBridge.js
Date Tue, 23 Oct 2007 01:56:28 GMT
Author: jmargaris
Date: Mon Oct 22 18:56:27 2007
New Revision: 587359

URL: http://svn.apache.org/viewvc?rev=587359&view=rev
Log:
when first child is added to combobox select it

Modified:
    incubator/xap/trunk/codebase/src/xap/bridges/xap/ListBoxBridge.js

Modified: incubator/xap/trunk/codebase/src/xap/bridges/xap/ListBoxBridge.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/codebase/src/xap/bridges/xap/ListBoxBridge.js?rev=587359&r1=587358&r2=587359&view=diff
==============================================================================
--- incubator/xap/trunk/codebase/src/xap/bridges/xap/ListBoxBridge.js (original)
+++ incubator/xap/trunk/codebase/src/xap/bridges/xap/ListBoxBridge.js Mon Oct 22 18:56:27
2007
@@ -145,7 +145,7 @@
 	xap.bridges.xap.ListBoxBridge.superclass.childAdded.call(this,anEvent) ;
 	if (this._peer.isCombobox){
 		var select = this._peer.select;
-		if (select.selectedIndex == -1){
+		if (select.options.length===1){
 			select.selectedIndex = 0 ;
 			this.revalue() ;
 		}



Mime
View raw message