[Fusionforge-commits] r8632 - trunk/gforge/www/js

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Tue Jan 5 18:20:25 CET 2010


Author: aljeux
Date: 2010-01-05 18:20:24 +0100 (Tue, 05 Jan 2010)
New Revision: 8632

Modified:
   trunk/gforge/www/js/sortable.js
Log:
recent sortable.js

Modified: trunk/gforge/www/js/sortable.js
===================================================================
--- trunk/gforge/www/js/sortable.js	2010-01-05 17:20:19 UTC (rev 8631)
+++ trunk/gforge/www/js/sortable.js	2010-01-05 17:20:24 UTC (rev 8632)
@@ -242,15 +242,15 @@
 	return compare_numeric(aa,bb);
 }
 function compare_numeric(a,b) {
-	var a = parseFloat(a);
-	a = (isNaN(a) ? 0 : a);
-	var b = parseFloat(b);
-	b = (isNaN(b) ? 0 : b);
-	return a - b;
+  var aa = parseFloat(a);
+  aa = (isNaN(aa) ? 0 : aa);
+  var bb = parseFloat(b);
+  bb = (isNaN(bb) ? 0 : bb);
+  return aa - bb;
 }
 function ts_sort_caseinsensitive(a,b) {
-	aa = ts_getInnerText(a.cells[SORT_COLUMN_INDEX]).toLowerCase();
-	bb = ts_getInnerText(b.cells[SORT_COLUMN_INDEX]).toLowerCase();
+	var aa = ts_getInnerText(a.cells[SORT_COLUMN_INDEX]).toLowerCase();
+	var bb = ts_getInnerText(b.cells[SORT_COLUMN_INDEX]).toLowerCase();
 	if (aa==bb) {
 		return 0;
 	}
@@ -260,8 +260,8 @@
 	return 1;
 }
 function ts_sort_default(a,b) {
-	aa = ts_getInnerText(a.cells[SORT_COLUMN_INDEX]);
-	bb = ts_getInnerText(b.cells[SORT_COLUMN_INDEX]);
+	var aa = ts_getInnerText(a.cells[SORT_COLUMN_INDEX]);
+	var bb = ts_getInnerText(b.cells[SORT_COLUMN_INDEX]);
 	if (aa==bb) {
 		return 0;
 	}
@@ -283,6 +283,7 @@
 		return r;
 	} else {
 		alert("Handler could not be removed");
+		return false;
 	}
 }
 function clean_num(str) {




More information about the Fusionforge-commits mailing list