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.
30 .fileUpload input.upload {
39 filter: alpha(opacity=0);
44 display: inline-block;
57 <div attribute-test="collectorproperties" id="configure-widgets" >
58 <div attribute-test="cldsopentemplateh" class="modal-header">
59 <button type="button" class="close" ng-click="close(false)" aria-hidden="true" style="margin-top: -3px">×</button>
62 <div attribute-test="cldsopentemplateb" class="modal-body" style="height: 280px">
63 <div style="height: 10px">
65 <form id="saveProps" class="form-horizontal">
68 <div class="form-group">
69 <label for="schemaLocation" class="col-sm-4 control-label">Topic Publishes</label>
71 <div class="col-sm-8">
72 <select class="form-control" focus="true" name="topicPublishes" id="topicPublishes">
73 <!-- <option value="volvo">volvo</option>
74 <option value="saab">saab</option>
75 <option value="opel">opel</option> -->
86 <div class="modal-footer">
87 <!--<button ng-click="reset()" class="btn btn-primary" style="float:left">Reset</button>-->
88 <button id="savePropsBtn" class="btn btn-primary">Close</button>
89 <button ng-click="close(true)" id="close_button" class="btn btn-primary">Cancel</button>
93 loadPropertyWindow("collector");
94 var el=elementMap[lastElementSelected];
96 for(var i=0;i<el.length;i++){
98 $("#"+el[i].name).val(el[i].value);
103 $("#saveProps").on('submit', function (event) {
104 console.log("clicksaveprop");
106 //console.log($(this).serializeArray()[0].name);
107 saveProperties($(this).serializeArray())
108 event.preventDefault();
110 $("#close_button").click();
113 $("#savePropsBtn").click(function (event) {
114 console.log("savepropbtn");
115 //alert($("#CProp_Target").val())
117 $("#saveProps").submit();