Fix IE parse errors.
authorJan Schneider <jan@horde.org>
Fri, 20 Nov 2009 12:48:46 +0000 (13:48 +0100)
committerJan Schneider <jan@horde.org>
Fri, 20 Nov 2009 12:49:18 +0000 (13:49 +0100)
kronolith/js/kronolith.js

index 768b760..de7081c 100644 (file)
@@ -244,7 +244,7 @@ KronolithCore = {
                 }
                 this.tasktype = tasktype;
                 [ 'All', 'Complete', 'Incomplete', 'Future' ].each(function(tasktype) {
-                    $('kronolithTasks' + tasktype).parentNode.removeClassName('activeTab');
+                    $($('kronolithTasks' + tasktype).parentNode).removeClassName('activeTab');
                 });
                 $('kronolithTasks' + this.tasktype.capitalize()).parentNode.addClassName('activeTab');
                 this._loadTasks(this.tasktype);
@@ -1208,7 +1208,7 @@ KronolithCore = {
                                 offset = top - dragTop;
                                 height = div.offsetHeight - offset;
                                 div.setStyle({
-                                    'top': (div.offsetTop + offset) + 'px',
+                                    'top': (div.offsetTop + offset) + 'px'
                                 });
                                 offset = d.ghost.offsetTop;
                                 dragTop = top;
@@ -1286,7 +1286,7 @@ KronolithCore = {
                     }.bind([this, div]),
                     'onEnd': function(d, e) {
                         this[0]._onDragEnd(d, this[1], innerDiv, event, midnight, view, step);
-                    }.bind([this, div]),
+                    }.bind([this, div])
                 });
             }