|
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