Keep the dragged event highlighted.
authorJan Schneider <jan@horde.org>
Tue, 28 Apr 2009 13:07:56 +0000 (15:07 +0200)
committerJan Schneider <jan@horde.org>
Tue, 28 Apr 2009 13:07:56 +0000 (15:07 +0200)
kronolith/js/src/kronolith.js

index 7963ab9..0fc5b45 100644 (file)
@@ -810,6 +810,9 @@ KronolithCore = {
                         y = Math.max(0, step * (Math.min(maxDiv, y - minTop) / step | 0)) + minTop;
                         return [0, y];
                     },
+                    'onStart': function(d, e) {
+                        this.addClassName('kronolithSelected');
+                    }.bind(div),
                     'onDrag': function(d, e) {
                         if (Object.isUndefined(d.innerDiv)) {
                             d.innerDiv = d.ghost.select('.kronolithEventInfo')[0];