2 ============LICENSE_START=======================================================
4 ================================================================================
5 Copyright (C) 2017 AT&T Intellectual Property. All rights
7 ================================================================================
8 Licensed under the Apache License, Version 2.0 (the "License");
9 you may not use this file except in compliance with the License.
10 You may obtain a copy of the License at
12 http://www.apache.org/licenses/LICENSE-2.0
14 Unless required by applicable law or agreed to in writing, software
15 distributed under the License is distributed on an "AS IS" BASIS,
16 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 See the License for the specific language governing permissions and
18 limitations under the License.
19 ============LICENSE_END============================================
20 ===================================================================
21 ECOMP is a trademark and service mark of AT&T Intellectual Property.
34 .fileUpload input.upload {
43 filter: alpha(opacity = 0);
48 display: inline-block;
57 <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
58 <script type="text/javascript">
59 function disablefile() {
61 document.getElementById("fileUpload").disabled = true;
65 function disableSVN() {
67 document.getElementById("schemaLocation").disabled = true;
68 document.getElementById("userID").disabled = true;
69 document.getElementById("password").disabled = true;
75 <div attribute-test="refreshasdc" id="configure-widgets">
76 <div attribute-test="refreshasdch" class="modal-header">
77 <button type="button" class="close" ng-click="close(false)"
78 aria-hidden="true" style="margin-top: -3px">×</button>
79 <h4>Model Properties</h4>
81 <div class="modal-body" style="height: 280px">
82 <div style="height: 10px"></div>
83 <div class="alert alert-danger refreshASDC" role="alert" id='paramsWarnrefresh'>
84 <strong>Ooops!</strong> Unable to load properties for <span id='servName'>. Would you like to</span>
85 <a href="javascript:void(0);" ng-click="paramsRetry();" class="btn-link" id='paramsRetry'>Retry </a> /
86 <a href="javascript:void(0);" ng-click="paramsCancel();" class="btn-link" id='paramsCancel'>Cancel</a>
88 <form id="saveProps" >
91 <div class="form-group">
92 <label for="services" class="col-sm-4 control-label" >Refresh ASDC services?</label>
100 <i hidden id="ridinSpinners" class="fa fa-spinner fa-spin" style="display:none;width:100%;text-align:center;font-size:24px;color:black;"></i>
103 <div attribute-test="refreshasdcf" class="modal-footer">
104 <!--<button ng-click="reset()" class="btn btn-primary" style="float:left">Reset</button>-->
105 <button ng-click="refreshASDC()" class="btn btn-primary">refresh</button>
106 <button ng-click="close(true)" id="close_button"
107 class="btn btn-primary">Cancel</button>
114 // url: '/restservices/clds/v1/clds/asdc/services/',
115 // success: function(data){
118 // error:function(s,a,err){
125 // var services=vf_Services.service
126 // console.log(elementMap["global"])
127 // for(k in services){
128 // console.log("lol")
129 // $("#service").append("<option value="+k+">"+services[k]+"</option>")
131 // loadSharedPropertyByService()
132 // var el = elementMap["global"];
133 // $("#status").val($("#activity_modeler").text())
134 // if (el !== undefined) {
135 // for (var i = 0; i < el.length; i++) {
136 // $("#" + el[i].name).val(el[i].value);
142 $("#service").on('focus', function () {
143 // Store the current value on focus and on change
144 previous = this.value;
146 }).change(function(){
147 $("#ridinSpinners").css("display","")
148 var bool=loadSharedPropertyByService($(this).val())
149 $("#ridinSpinners").css("display","none")
151 $(this).val(previous)
155 // $("#service").on("change",function(){
156 // $("#ridinSpinners").css("display","")
157 // loadSharedPropertyByService($(this).val())
158 // $("#ridinSpinners").css("display","none")
160 function noRepeats(form){
162 for(var i=0;i<form.length;i++){
163 if(select[form[i].name]===undefined)
164 select[form[i].name]=[]
165 select[form[i].name].push(form[i].value);
177 $("#saveProps").on('submit', function(event) {
178 saveGlobalProperties(noRepeats($(this).serializeArray()))
179 event.preventDefault();
181 $("#close_button").click();
184 $("#savePropsBtn").click(function(event) {
185 //alert($("#CProp_Target").val())
186 $("#saveProps").submit();