mirror of
https://github.com/nasa/openmct.git
synced 2025-06-22 17:08:57 +00:00
[Time Conductor] Try to rewrite datetime picker as control
This commit is contained in:
@ -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.
|
||||
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user