[Time Conductor] Try to rewrite datetime picker as control

This commit is contained in:
Victor Woeltjen
2015-09-15 18:34:27 -07:00
parent 6c497f3c36
commit 9a78b63065
6 changed files with 24 additions and 16 deletions

View File

@ -26,6 +26,13 @@ define(
function () {
"use strict";
/**
* The `mct-click-elsewhere` directive will evaluate its
* associated expression whenever a `mousedown` occurs anywhere
* outside of the element that has the `mct-click-elsewhere`
* directive attached. This is useful for dismissing popups
* and the like.
*/
function MCTClickElsewhere($document) {
// Link; install event handlers.

View File

@ -25,7 +25,7 @@ define(
function () {
var TEMPLATE = "<div></div>";
function MCTPopup($window, $document, $compile, $interval) {
function MCTPopup($window, $document, $compile) {
function link(scope, element, attrs, ctrl, transclude) {
var body = $document.find('body'),
popup = $compile(TEMPLATE)(scope),
@ -52,7 +52,6 @@ define(
scope.$on('$destroy', function () {
popup.remove();
$interval.cancel(activeInterval);
});
}