diff options
author | 2017-05-07 14:58:24 -0400 | |
---|---|---|
committer | 2017-05-07 14:58:24 -0400 | |
commit | 3982f4f67314ec37fd9b22ae54049958af777c1b (patch) | |
tree | 72111b7c13ee7529cce1ea4c8d83c89fdd164450 /vid/src/main/webapp/static/fusion/raptor/ebz/quick_links.js | |
parent | 00e0d25933699f9e39c3f0b86c983165a1e3e330 (diff) |
[VID-6] Initial rebase push
Change-Id: I9077be9663754d9b22f77c6a7b3109b361b39346
Signed-off-by: jimmydot <jf2512@att.com>
Diffstat (limited to 'vid/src/main/webapp/static/fusion/raptor/ebz/quick_links.js')
-rw-r--r-- | vid/src/main/webapp/static/fusion/raptor/ebz/quick_links.js | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/vid/src/main/webapp/static/fusion/raptor/ebz/quick_links.js b/vid/src/main/webapp/static/fusion/raptor/ebz/quick_links.js deleted file mode 100644 index 81e8276e..00000000 --- a/vid/src/main/webapp/static/fusion/raptor/ebz/quick_links.js +++ /dev/null @@ -1,33 +0,0 @@ -'use strict'; -angular.module('quantum').directive('quickLinks', ['$http','$window', function($http,$window){ - return { - restrict: 'E', - scope:{ - ngModel: '=' - }, - template: "<div att-links-list class='att-accordion'>" + - "<a ng-repeat='quickLink in quickLinks' class='att-accordion__group' att-links-list-item href='' ng-click='openLink(quickLink.reportURL)'>{{quickLink.reportName}}<span ng-show='quickLink.showDescr'> - {{quickLink.reportDescr}}</span></a>" + - "<a ng-repeat='quickLink in ngModel' class='att-accordion__group' att-links-list-item href='' ng-click='openLink(quickLink.reportURL)'>{{quickLink.reportName}}<span ng-show='quickLink.showDescr'> - {{quickLink.reportDescr}}</span></a>" + - "</div>", - link: function($scope,element,attr){ - $scope.ngDisplayType=attr.ngDisplayType; - $scope.popUpWindowSize = "top=" + ((screen.height*.2)/2) + ",left=" + ((screen.width*.05)/2) + ",width="+(screen.width-(screen.width*.06))+",height="+(screen.height-(screen.height*.25)); - - $scope.openLink = function(url){ - if($scope.ngDisplayType){ - if($scope.ngDisplayType=='1'){ - $window.open(url,'_self'); - }else if($scope.ngDisplayType=='2'){ - $window.open(url, '_blank'); - }else if($scope.ngDisplayType=='3'){ - $window.open(url, '', $scope.popUpWindowSize); - } - } - }; - - $http.get('raptor.htm?action=quicklinks.json&quick_links_menu_id='+attr.ngMenuId).then(function(result){ - $scope.quickLinks=result.data; - }); - } - }; -}]);
\ No newline at end of file |