X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=POLICY-SDK-APP%2Fsrc%2Fmain%2Fwebapp%2Fapp%2FpolicyApp%2Fcontroller%2FdictionaryController%2FattributeDictController.js;h=3e54dd3399af94d32288cda906899867ac27cfd0;hb=9b7cb367a875ae91a7fe8d9c5534339897f68037;hp=4ca3b2266f4c43393fc6603595fd96e517b3625d;hpb=073cc188efe9abb4c010cf674e34e2cf46ef1c52;p=policy%2Fengine.git diff --git a/POLICY-SDK-APP/src/main/webapp/app/policyApp/controller/dictionaryController/attributeDictController.js b/POLICY-SDK-APP/src/main/webapp/app/policyApp/controller/dictionaryController/attributeDictController.js index 4ca3b2266..3e54dd339 100644 --- a/POLICY-SDK-APP/src/main/webapp/app/policyApp/controller/dictionaryController/attributeDictController.js +++ b/POLICY-SDK-APP/src/main/webapp/app/policyApp/controller/dictionaryController/attributeDictController.js @@ -2,7 +2,7 @@ * ============LICENSE_START======================================================= * 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. @@ -55,7 +55,6 @@ app.controller('editAttributeController' ,function ($scope, $modalInstance, mess if(!regex.test(attributeDictionaryData.xacmlId)) { Notification.error("Enter Valid Attribute Name without spaces or special characters"); }else{ - var finalData = extend(attributeDictionaryData, $scope.attributeDatas[0]); var uuu = "saveDictionary/attribute_dictionary/save_attribute"; var postData={attributeDictionaryData: attributeDictionaryData, userid: userid}; $.ajax({ @@ -75,7 +74,7 @@ app.controller('editAttributeController' ,function ($scope, $modalInstance, mess } }, error : function(data){ - alert("Error while saving."); + Notification.error("Error while saving."); } }); } @@ -101,4 +100,4 @@ app.controller('editAttributeController' ,function ($scope, $modalInstance, mess $scope.close = function() { $modalInstance.close(); }; -}); \ No newline at end of file +});