1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-05 10:39:25 +02:00
OpenSTF/res/app/components/stf/device-context-menu/device-context-menu-directive.js
Gunther Brunner c81cd75a50 Refactored device context menu to its own directive.
Now works in standalone also.
2014-09-25 17:10:31 +09:00

20 lines
460 B
JavaScript

module.exports = function deviceContextMenuDirective($window) {
return {
restrict: 'EA',
replace: false,
//scope: {
// control: '&',
// device: '&'
//},
transclude: true,
template: require('./device-context-menu.jade'),
link: function (scope, element, attrs) {
//var device = scope.device()
//var control = scope.control()
scope.windowClose = function () {
$window.close()
}
}
}
}