tot - Check-in [4]
Not logged in
[Browse]  [Home]  [Login]  [Reports]  [Search]  [Timeline
  [Patchset
Check-in Number: 4
Date: 2007-Feb-15 20:10:14 (local)
2007-Feb-15 19:10:14 (UTC)
User:rse
Branch:
Comment: add keyword expansion and allow one to use time abbreviations
Tickets:
Inspections:
Files:
jquery/jquery.alternation.js      2 -> 4
jquery/jquery.schedule.js      2 -> 4
Modified: jquery/jquery.alternation.js
===================================================================
--- jquery/jquery.alternation.js	2007-02-14 16:41:10 UTC (rev 3)
+++ jquery/jquery.alternation.js	2007-02-15 19:10:14 UTC (rev 4)
@@ -5,7 +5,7 @@
 **  Copyright (c) 2006 Matt Oakes
 **
 **  $LastChangedDate$
-**  $Rev$
+**  $LastChangedRevision$
 */
 
 /*


Property changes on: jquery/jquery.alternation.js
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+LastChangedDate LastChangedRevision
\ No newline at end of property
Modified: jquery/jquery.schedule.js
===================================================================
--- jquery/jquery.schedule.js	2007-02-14 16:41:10 UTC (rev 3)
+++ jquery/jquery.schedule.js	2007-02-15 19:10:14 UTC (rev 4)
@@ -3,7 +3,7 @@
 **  Copyright (c) 2007 Ralf S. Engelschall <rse@engelschall.com> 
 **
 **  $LastChangedDate$
-**  $Rev$
+**  $LastChangedRevision$
 */
 
 /*
@@ -86,6 +86,13 @@
         while (typeof arguments[i] != "undefined")
             ctx["args"].push(arguments[i++]);
 
+        /*  determine time value in milliseconds */
+        var match = String(ctx["time"]).match(RegExp("^([0-9]+)([smhdw])$"));
+        if (match && match[0] != "undefined" && match[1] != "undefined")
+            ctx["time"] = String(parseInt(match[1]) *
+                { s: 1000, m: 1000*60, h: 1000*60*60,
+                  d: 1000*60*60*24, w: 1000*60*60*24*7 }[match[2]]);
+
         /*  determine unique identifier of task  */
         if (ctx["id"] == null)
             ctx["id"] = (  String(ctx["repeat"])  + ":"


Property changes on: jquery/jquery.schedule.js
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+LastChangedDate LastChangedRevision
\ No newline at end of property