Author: jmorliaguet
Date: Sat Feb 11 13:28:56 2006
New Revision: 2346

Modified:
   cpsskins/branches/jmo-perspectives/ui/framework/ctal.js
Log:

- temp fix until the function is rewritten



Modified: cpsskins/branches/jmo-perspectives/ui/framework/ctal.js
==============================================================================
--- cpsskins/branches/jmo-perspectives/ui/framework/ctal.js     (original)
+++ cpsskins/branches/jmo-perspectives/ui/framework/ctal.js     Sat Feb 11 
13:28:56 2006
@@ -223,8 +223,15 @@
 }
 
 ctal.get_nameexpr = function(value) {
-  var splitnx = ctal.trim(value).split(/ /);
-  return [ctal.trim(splitnx[0]), ctal.trim(splitnx.slice(1).join(' '))];
+  var splitnx = value.split(/ /);
+  var first = "";
+  // ltrim
+  while (first == "") {
+    first = splitnx.shift();
+  }
+  return [first, splitnx.join(" ")];
+  //var splitnx = ctal.trim(value).split(/ /);
+  //return [ctal.trim(splitnx[0]), ctal.trim(splitnx.slice(1).join(' '))];
 }
 
 ctal.trim = function(text) {
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to