diff options
author | zhangab <zhanganbing@chinamobile.com> | 2018-04-18 09:11:56 +0800 |
---|---|---|
committer | zhangab <zhanganbing@chinamobile.com> | 2018-04-18 09:12:03 +0800 |
commit | d698af153772ca4351ad3b23fbb987fc749890af (patch) | |
tree | 8fa49f10523134f9596814ef7a30528e298ac660 /usecaseui-common/src/main/webapp/app/fusion/scripts/DS2-controllers/ds2-sample/notebook-controller.js | |
parent | ffffd8a35ae5fcea703a7427844037c07c232b92 (diff) |
Fix Security/Vulnerability problems
Change-Id: Ie0f2c9e0794941d9b9a7f00a6c3d349269d98ed1
Issue-ID: USECASEUI-104
Signed-off-by: zhangab <zhanganbing@chinamobile.com>
Diffstat (limited to 'usecaseui-common/src/main/webapp/app/fusion/scripts/DS2-controllers/ds2-sample/notebook-controller.js')
-rw-r--r-- | usecaseui-common/src/main/webapp/app/fusion/scripts/DS2-controllers/ds2-sample/notebook-controller.js | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/usecaseui-common/src/main/webapp/app/fusion/scripts/DS2-controllers/ds2-sample/notebook-controller.js b/usecaseui-common/src/main/webapp/app/fusion/scripts/DS2-controllers/ds2-sample/notebook-controller.js deleted file mode 100644 index efd22f0f..00000000 --- a/usecaseui-common/src/main/webapp/app/fusion/scripts/DS2-controllers/ds2-sample/notebook-controller.js +++ /dev/null @@ -1,37 +0,0 @@ -appDS2.controller('nbookController', ['$scope', '$location','$window','$http', function ($scope,$location,$window,$http) { - $scope.keyValueList = [{}]; - $scope.submitParameters = function() { - $scope.iframevisibility = false; - $scope.postData = {}; - $scope.additionalqueryParams = {}; - //Use this if there is only one 1 query param key value pair - $scope.additionalqueryParams.paramKey = $scope.qparamKey; - $scope.additionalqueryParams.paramVal = $scope.qparamVal; - var qryStr = ''; - for(var i = 0; i < $scope.keyValueList.length; i++) { - var obj = $scope.keyValueList[i]; - if (obj.qK != undefined && obj.qV != undefined) { - if (qryStr!='') - qryStr = qryStr+'&'+obj.qK+'='+obj.qV; - else - qryStr = obj.qK+'='+obj.qV; - } - } - var queryurl = 'nbooktest.htm?nid='+$scope.notebookvalue+'&'+qryStr; - window.open (queryurl,'_self',false); - } - $scope.addKeyValuePairs = function (kv) { - if ($scope.keyValueList.length < 9) { - $scope.keyValueList.push({ - }); - } else { - document.getElementById("addbtn")["disabled"] = true; - } - } - $scope.removeKeyValuePairs = function (index) { - $scope.keyValueList.splice(index, 1); - if ($scope.keyValueList.length == 8) { - document.getElementById("addbtn")["disabled"] = false; - } - } -}]);
\ No newline at end of file |