aboutsummaryrefslogtreecommitdiffstats
path: root/openo-portal/portal-lifecyclemgr/js
diff options
context:
space:
mode:
authorLuji7 <lu.ji3@zte.com.cn>2016-09-18 13:54:00 +0800
committerLuji7 <lu.ji3@zte.com.cn>2016-09-18 13:54:00 +0800
commit332febfadf4ff8b777d5f58f0e68c0287a515afe (patch)
treeda7570037cf1f987d24aaa3d85f73605a5a58db3 /openo-portal/portal-lifecyclemgr/js
parent72508a1e06b0303fb917be561ec4d69cc3e5d45f (diff)
lcm gui integration
Change-Id: I9899953757a2efa0a7aa7212cd205c6a8ec161d6 Signed-off-by: Luji7 <lu.ji3@zte.com.cn>
Diffstat (limited to 'openo-portal/portal-lifecyclemgr/js')
-rw-r--r--openo-portal/portal-lifecyclemgr/js/rest.js25
1 files changed, 0 insertions, 25 deletions
diff --git a/openo-portal/portal-lifecyclemgr/js/rest.js b/openo-portal/portal-lifecyclemgr/js/rest.js
index a5d83f83..c27dbf07 100644
--- a/openo-portal/portal-lifecyclemgr/js/rest.js
+++ b/openo-portal/portal-lifecyclemgr/js/rest.js
@@ -78,29 +78,4 @@ $(function(){
return o;
};
-$('#createNS').click(function(){
- var formData = JSON.stringify($("#neForm").serializeObject());
- var jsonobj = JSON.parse(formData);
- var newJson = {"managedElement": jsonobj};
- formData = JSON.stringify(newJson);
- var requestUrl = "http://localhost:8080/org.openo.sdno.brs/openoapi/sdnobrs/v1/managed-elements";
- $
- .ajax({
- type : "POST",
- url : requestUrl,
- contentType : "application/json",
- dataType : "json",
- data : formData,
- success : function(jsonResp) {
- alert("NS saved successfully!!!");
- jsonobj["id"]= jsonResp.managedElement.id;
- $('#ne').bootstrapTable("append", jsonobj);
- $('#vmAppDialog').removeClass('in').css('display','none');
-
- },
- error : function(xhr, ajaxOptions, thrownError) {
- alert("Error on page : " + xhr.responseText);
- }
- });
- });
}) \ No newline at end of file