From 19ad4c8174a7475102d7977fc34e7a3df5a80d98 Mon Sep 17 00:00:00 2001 From: Victor Woeltjen Date: Fri, 23 Oct 2015 13:48:07 -0700 Subject: [PATCH] [Timelines] Change namespacing for directives WTD-1239 --- platform/features/timeline/bundle.json | 4 ++-- .../{WARPSwimlaneDrag.js => MCTSwimlaneDrag.js} | 6 +++--- .../{WARPSwimlaneDrop.js => MCTSwimlaneDrop.js} | 12 ++++++------ 3 files changed, 11 insertions(+), 11 deletions(-) rename platform/features/timeline/src/directives/{WARPSwimlaneDrag.js => MCTSwimlaneDrag.js} (90%) rename platform/features/timeline/src/directives/{WARPSwimlaneDrop.js => MCTSwimlaneDrop.js} (92%) diff --git a/platform/features/timeline/bundle.json b/platform/features/timeline/bundle.json index 6cf2f9be8d..28080de247 100644 --- a/platform/features/timeline/bundle.json +++ b/platform/features/timeline/bundle.json @@ -335,12 +335,12 @@ "directives": [ { "key": "mctSwimlaneDrop", - "implementation": "directives/WARPSwimlaneDrop.js", + "implementation": "directives/MCTSwimlaneDrop.js", "depends": [ "dndService" ] }, { "key": "mctSwimlaneDrag", - "implementation": "directives/WARPSwimlaneDrag.js", + "implementation": "directives/MCTSwimlaneDrag.js", "depends": [ "dndService" ] } ], diff --git a/platform/features/timeline/src/directives/WARPSwimlaneDrag.js b/platform/features/timeline/src/directives/MCTSwimlaneDrag.js similarity index 90% rename from platform/features/timeline/src/directives/WARPSwimlaneDrag.js rename to platform/features/timeline/src/directives/MCTSwimlaneDrag.js index cd0aed252e..87bd829adf 100644 --- a/platform/features/timeline/src/directives/WARPSwimlaneDrag.js +++ b/platform/features/timeline/src/directives/MCTSwimlaneDrag.js @@ -6,14 +6,14 @@ define( "use strict"; /** - * Defines the `warp-swimlane-drag` directive. When a drag is initiated + * Defines the `mct-swimlane-drag` directive. When a drag is initiated * form an element with this attribute, the swimlane being dragged * (identified by the value of this attribute, as an Angular expression) * will be exported to the `dndService` as part of the active drag-drop * state. * @param {DndService} dndService drag-and-drop service */ - function WARPSwimlaneDrag(dndService) { + function MCTSwimlaneDrag(dndService) { function link(scope, element, attrs) { // Look up the swimlane from the provided expression function swimlane() { @@ -42,6 +42,6 @@ define( }; } - return WARPSwimlaneDrag; + return MCTSwimlaneDrag; } ); diff --git a/platform/features/timeline/src/directives/WARPSwimlaneDrop.js b/platform/features/timeline/src/directives/MCTSwimlaneDrop.js similarity index 92% rename from platform/features/timeline/src/directives/WARPSwimlaneDrop.js rename to platform/features/timeline/src/directives/MCTSwimlaneDrop.js index 916fb82bd7..980191bac8 100644 --- a/platform/features/timeline/src/directives/WARPSwimlaneDrop.js +++ b/platform/features/timeline/src/directives/MCTSwimlaneDrop.js @@ -6,14 +6,14 @@ define( "use strict"; /** - * Defines the `warp-swimlane-drop` directive. When a drop occurs + * Defines the `mct-swimlane-drop` directive. When a drop occurs * on an element with this attribute, the swimlane targeted by the drop * (identified by the value of this attribute, as an Angular expression) * will receive the dropped domain object (at which point it can handle * the drop, typically by inserting/reordering.) * @param {DndService} dndService drag-and-drop service */ - function WARPSwimlaneDrop(dndService) { + function MCTSwimlaneDrop(dndService) { // Handle dragover events function dragOver(e, element, swimlane) { @@ -60,7 +60,7 @@ define( SwimlaneDragConstants.MCT_DRAG_TYPE ), draggedSwimlane = dndService.getData( - SwimlaneDragConstants.WARP_SWIMLANE_DRAG_TYPE + SwimlaneDragConstants.TIMELINE_SWIMLANE_DRAG_TYPE ); if (id) { @@ -76,7 +76,7 @@ define( function link(scope, element, attrs) { // Lookup swimlane by evaluating this attribute function swimlane() { - return scope.$eval(attrs.warpSwimlaneDrop); + return scope.$eval(attrs.mctSwimlaneDrop); } // Handle dragover element.on('dragover', function (e) { @@ -101,6 +101,6 @@ define( }; } - return WARPSwimlaneDrop; + return MCTSwimlaneDrop; } -); \ No newline at end of file +);