Update css file name in conf.py
[policy/engine.git] / POLICY-SDK-APP / src / main / webapp / app / policyApp / policy-models / Editor / PolicyTemplateController / ClosedLoopPMController.js
index c81f465..454a724 100644 (file)
@@ -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.
@@ -23,7 +23,14 @@ angular.module("abs").controller('clPMController', ['$scope', '$window', '$timeo
         $scope.policyNavigator;
         $scope.savebutton = true;
         $scope.refreshCheck = false;
-           
+       
+        if(!$scope.temp.policy.editPolicy  && !$scope.temp.policy.readOnly){
+                $scope.temp.policy = {
+                                policyType : "Config",
+                                configPolicyType : "ClosedLoop_PM"
+                }
+        }
+        
         $scope.refresh = function(){
           if($scope.refreshCheck){
                $scope.policyNavigator.refresh();
@@ -35,6 +42,15 @@ angular.module("abs").controller('clPMController', ['$scope', '$window', '$timeo
          $scope.modal = function(id, hide) {
              return $('#' + id).modal(hide ? 'hide' : 'show');
          };
+         
+         $('#ttlDate').datepicker({
+                 dateFormat: 'dd/mm/yy',
+                 changeMonth: true,
+                 changeYear: true,
+                 onSelect: function(date) {
+                         angular.element($('#ttlDate')).triggerHandler('input');
+                 }
+         });
         
         PolicyAppService.getData('getDictionary/get_OnapNameDataByName').then(function (data) {
                 var j = data;
@@ -177,4 +193,4 @@ angular.module("abs").controller('clPMController', ['$scope', '$window', '$timeo
                        });
            };
          
-}]);
\ No newline at end of file
+}]);