Don't insert future tasks delayed, for now. For some reason the timeout is
authorJan Schneider <jan@horde.org>
Mon, 7 Dec 2009 22:07:44 +0000 (23:07 +0100)
committerJan Schneider <jan@horde.org>
Mon, 7 Dec 2009 22:07:44 +0000 (23:07 +0100)
triggered immediately for me, killing the browser in an infinite loop.

kronolith/js/kronolith.js

index 941ff4c..5d0a532 100644 (file)
@@ -1694,16 +1694,6 @@ KronolithCore = {
         tasktypes.each(function(type) {
             var tasks = this.tcache.get(type).get(tasklist);
             $H(tasks).each(function(task) {
-                if (tasktype != 'all' &&
-                    !Object.isUndefined(task.value.start) &&
-                    task.value.start.isAfter(now)) {
-                    (function() {
-                        if (this.tasktype == tasktype) {
-                            this._insertTasks(tasktype, tasklist);
-                        }
-                    }).bind(this).delay((task.value.start.getTime() - now.getTime()) / 1000);
-                }
-
                 switch (tasktype) {
                 case 'complete':
                     if (!task.value.cp ||