diff --git a/htdocs/portal/assets/js/fsportal.js b/htdocs/portal/assets/js/fsportal.js index cb1e0349b0..0a84184da1 100644 --- a/htdocs/portal/assets/js/fsportal.js +++ b/htdocs/portal/assets/js/fsportal.js @@ -851,9 +851,15 @@ App.SofiaStatusController = Ember.ObjectController.extend({ actions: { //Submit the modal submit: function() { - alert("Not implemented"); - return false; - $.post("/txtapi/lua?create_gw.lua%20" + $("#gateway_name").val(), { + // alert("Not implemented"); + // return false; + url = "/txtapi/lua?create_gateway.lua%20" + + $("#gateway_name").val() + "%20" + + $("#gateway_realm").val() + "%20" + + $("#gateway_username").val() + "%20" + + $("#gateway_password").val() + "%20" + + $("#gateway_register").is(":checked"); + $.post(url, { success: function() { }, error: function(e) { } }); diff --git a/htdocs/portal/index.html b/htdocs/portal/index.html index c3102b5764..77db574741 100644 --- a/htdocs/portal/index.html +++ b/htdocs/portal/index.html @@ -643,30 +643,37 @@ {{#bs-modal name="newUserForm" fade="true" footerButtonsBinding="addGatewayButtons" title="Add Gateway"}} -