From d698af153772ca4351ad3b23fbb987fc749890af Mon Sep 17 00:00:00 2001 From: zhangab Date: Wed, 18 Apr 2018 09:11:56 +0800 Subject: Fix Security/Vulnerability problems Change-Id: Ie0f2c9e0794941d9b9a7f00a6c3d349269d98ed1 Issue-ID: USECASEUI-104 Signed-off-by: zhangab --- .../webapp/static/fusion/raptor/ebz/multiselect.js | 62 ---------------------- 1 file changed, 62 deletions(-) delete mode 100644 usecaseui-common/src/main/webapp/static/fusion/raptor/ebz/multiselect.js (limited to 'usecaseui-common/src/main/webapp/static/fusion/raptor/ebz/multiselect.js') diff --git a/usecaseui-common/src/main/webapp/static/fusion/raptor/ebz/multiselect.js b/usecaseui-common/src/main/webapp/static/fusion/raptor/ebz/multiselect.js deleted file mode 100644 index eda8da08..00000000 --- a/usecaseui-common/src/main/webapp/static/fusion/raptor/ebz/multiselect.js +++ /dev/null @@ -1,62 +0,0 @@ -'use strict'; - -angular.module('quantum').directive('dropdownMultiselect', ['$document', function($document){ - return { - restrict: 'E', - scope:{ - model: '=ngModel', - options: '=' - }, - template: "
"+ - "Multi-Select"+ - ""+ - "" + - "
" , - link: function($scope,element,attr){ - - $scope.$watch("options",function(newValue,oldValue) { - $scope.model = []; - }); - - $scope.selectAll = function () { - $scope.model = _.pluck($scope.options, 'value'); - }; - $scope.deselectAll = function() { - $scope.model=[]; - }; - $scope.setSelectedItem = function(){ - var value = this.option.value; - if (_.contains($scope.model, value)) { - $scope.model = _.without($scope.model, value); - } else { - $scope.model.push(value); - } - return false; - }; - $scope.isChecked = function (value) { - if (_.contains($scope.model, value)) { - return 'icon-included-checkmark pull-right'; - } - return false; - }; - - $document.bind('click', function(event){ - var isClickedElementChildOfPopup = element - .find(event.target) - .length > 0; - - if (isClickedElementChildOfPopup) - return; - - $scope.open = false; - $scope.$apply(); - }); - - } - }; -}]); \ No newline at end of file -- cgit 1.2.3-korg