[Timelines] Change namespacing for directives

WTD-1239
This commit is contained in:
Victor Woeltjen 2015-10-23 13:48:07 -07:00
parent 8159c365b5
commit 19ad4c8174
3 changed files with 11 additions and 11 deletions

View File

@ -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" ]
}
],

View File

@ -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;
}
);

View File

@ -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;
}
);
);