24 lines
643 B
JavaScript
24 lines
643 B
JavaScript
"use strict";
|
|
(function () {
|
|
'use strict';
|
|
angular.module('myitsmApp')
|
|
.directive('progressModal', function () {
|
|
return {
|
|
restrict: 'AE',
|
|
replace: true,
|
|
templateUrl: 'views/common/progress-modal-directive.html',
|
|
scope: {
|
|
title: '@',
|
|
text: '@',
|
|
launchNew: '@',
|
|
if: '='
|
|
},
|
|
controller: ['$scope', function ($scope) {
|
|
$scope.launchNewWindow = function () {
|
|
window.open('#/');
|
|
};
|
|
}]
|
|
};
|
|
});
|
|
}());
|