[richfaces-svn-commits] JBoss Rich Faces SVN: r4586 - branches/3.1.x/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Thu Dec 6 20:34:19 EST 2007


Author: nbelaevski
Date: 2007-12-06 20:34:19 -0500 (Thu, 06 Dec 2007)
New Revision: 4586

Modified:
   branches/3.1.x/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/ListBase.js
Log:
OL & LS: JS error fixed

Modified: branches/3.1.x/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/ListBase.js
===================================================================
--- branches/3.1.x/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/ListBase.js	2007-12-07 01:33:44 UTC (rev 4585)
+++ branches/3.1.x/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/ListBase.js	2007-12-07 01:34:19 UTC (rev 4586)
@@ -376,10 +376,12 @@
 		this.focusKeeper.focused = false;
 		//this.shuttleTable.className = Richfaces.ListBase.ORDERING_LIST_CLASSES.normal;
 		
-		if (Richfaces.SelectItems.isSelected(this.activeItem, this.CLASSES)) {
-			Richfaces.SelectItems.doSelect(this.activeItem, this.CLASSES);			
-		} else {
-			Richfaces.SelectItems.doNormal(this.activeItem, this.CLASSES);
+		if (this.activeItem) {
+			if (Richfaces.SelectItems.isSelected(this.activeItem, this.CLASSES)) {
+				Richfaces.SelectItems.doSelect(this.activeItem, this.CLASSES);			
+			} else {
+				Richfaces.SelectItems.doNormal(this.activeItem, this.CLASSES);
+			}
 		}
 	},
 	




More information about the richfaces-svn-commits mailing list