X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=POLICY-SDK-APP%2Fsrc%2Fmain%2Fwebapp%2Fapp%2FpolicyApp%2Fcontroller%2FdictionaryController%2FDecisionRainyDayDictController.js;h=fa14dfdc91253a4e3ce516c710caf4875562b1a4;hb=710011b4fb147bf100c52c4b0425160bba88a0fd;hp=fc34fa7ca66e7d2009be2f2a081e2bd211476daa;hpb=eb654437ee2815028602daa943d0a939a5bee3cd;p=policy%2Fengine.git diff --git a/POLICY-SDK-APP/src/main/webapp/app/policyApp/controller/dictionaryController/DecisionRainyDayDictController.js b/POLICY-SDK-APP/src/main/webapp/app/policyApp/controller/dictionaryController/DecisionRainyDayDictController.js index fc34fa7ca..fa14dfdc9 100644 --- a/POLICY-SDK-APP/src/main/webapp/app/policyApp/controller/dictionaryController/DecisionRainyDayDictController.js +++ b/POLICY-SDK-APP/src/main/webapp/app/policyApp/controller/dictionaryController/DecisionRainyDayDictController.js @@ -1,8 +1,8 @@ /*- * ============LICENSE_START======================================================= - * ECOMP Policy Engine + * ONAP Policy Engine * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * Copyright (C) 2017, 2019 AT&T Intellectual Property. All rights reserved. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -52,7 +52,6 @@ app.controller('editRainyDayDictController' , function ($scope, $modalInstance, $scope.editRainyDayTreatment = message.rainyDayDictionaryData; $scope.saveDecisionTreatments = function(rainyDayDictionaryData) { - var finalData = extend(rainyDayDictionaryData, $scope.treatmentDatas[0]); var uuu = "saveDictionary/decision_dictionary/save_RainyDay"; var postData={rainyDayDictionaryData: rainyDayDictionaryData, userid: userid}; $.ajax({ @@ -77,13 +76,6 @@ app.controller('editRainyDayDictController' , function ($scope, $modalInstance, }); }; - function extend(obj, src) { - for (var key in src) { - if (src.hasOwnProperty(key)) obj[key] = src[key]; - } - return obj; - } - $scope.treatmentDatas = [{"userDataTypeValues" : $scope.treatments}]; $scope.addNewTreatment = function() { $scope.treatments.push({}); @@ -97,4 +89,4 @@ app.controller('editRainyDayDictController' , function ($scope, $modalInstance, $scope.close = function() { $modalInstance.close(); }; -}); \ No newline at end of file +});