Revision: 4226
          http://vexi.svn.sourceforge.net/vexi/?rev=4226&view=rev
Author:   clrg
Date:     2011-09-15 03:25:25 +0000 (Thu, 15 Sep 2011)
Log Message:
-----------
Fix timefield exception on "00:00:00" value

Modified Paths:
--------------
    trunk/org.vexi-vexi.widgets/src_main/org/vexi/theme/classic/timefield.t

Modified: 
trunk/org.vexi-vexi.widgets/src_main/org/vexi/theme/classic/timefield.t
===================================================================
--- trunk/org.vexi-vexi.widgets/src_main/org/vexi/theme/classic/timefield.t     
2011-09-14 21:21:32 UTC (rev 4225)
+++ trunk/org.vexi-vexi.widgets/src_main/org/vexi/theme/classic/timefield.t     
2011-09-15 03:25:25 UTC (rev 4226)
@@ -354,12 +354,12 @@
         //var s2 = "";
         var pm = v.indexOf('p')>=0 or v.indexOf('P')>=0;
         try {
-            for (var c = v.charCodeAt(i); c>57 or 49>c; c = v.charCodeAt(++i)) 
{ /* skip 0s and non-numbers */ }
-            for (var c = v.charCodeAt(i); c>47 and 58>c; c = 
v.charCodeAt(++i)) s0 = s0 + v.charAt(i);
-            for (var c = v.charCodeAt(i); c>57 or 49>c; c = v.charCodeAt(++i)) 
{ /* skip 0s and non-numbers */ }
-            for (var c = v.charCodeAt(i); c>47 and 58>c; c = 
v.charCodeAt(++i)) s1 = s1 + v.charAt(i);
-            //for (var c = v.charCodeAt(i); c>57 or 49>c; c = 
v.charCodeAt(++i)) { /* skip 0s and non-numbers */ }
-            //for (var c = v.charCodeAt(i); c>47 and 58>c; c = 
v.charCodeAt(++i)) s2 = s2 + v.charAt(i);
+            for (var c = v.charCodeAt(i); c>57 or 48>c; c = v.charCodeAt(++i)) 
{ /* skip non-numbers */ }
+            for (var c = v.charCodeAt(i); c>47 and 58>c; c = 
v.charCodeAt(++i)) s0 = (s0=="0"?"":s0) + v.charAt(i);
+            for (var c = v.charCodeAt(i); c>57 or 48>c; c = v.charCodeAt(++i)) 
{ /* skip non-numbers */ }
+            for (var c = v.charCodeAt(i); c>47 and 58>c; c = 
v.charCodeAt(++i)) s1 = (s1=="0"?"":s1) + v.charAt(i);
+            //for (var c = v.charCodeAt(i); c>57 or 48>c; c = 
v.charCodeAt(++i)) { /* skip non-numbers */ }
+            //for (var c = v.charCodeAt(i); c>47 and 58>c; c = 
v.charCodeAt(++i)) s2 = (s2=="0"?"":s2) + v.charAt(i);
             if (s0 == "" ) {
                 if (s1 == "") {
                     throw "rethrow";

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Doing More with Less: The Next Generation Virtual Desktop 
What are the key obstacles that have prevented many mid-market businesses
from deploying virtual desktops?   How do next-generation virtual desktops
provide companies an easier-to-deploy, easier-to-manage and more affordable
virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/
_______________________________________________
Vexi-svn mailing list
Vexi-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to