提交 ce9f1e5f authored 作者: Seven Du's avatar Seven Du

use lua scripts in a sub dir

上级 69a65aa4
...@@ -763,7 +763,7 @@ App.UsersController = Ember.ObjectController.extend({ ...@@ -763,7 +763,7 @@ App.UsersController = Ember.ObjectController.extend({
actions: { actions: {
//Submit the modal //Submit the modal
submit: function() { submit: function() {
$.post("/txtapi/lua?create_user.lua%20" + $("#user_id").val(), { $.post("/txtapi/lua?portal/create_user.lua%20" + $("#user_id").val(), {
data: "user_id=xxxx", data: "user_id=xxxx",
success: function() { }, success: function() { },
error: function(e) { } error: function(e) { }
...@@ -853,7 +853,7 @@ App.SofiaStatusController = Ember.ObjectController.extend({ ...@@ -853,7 +853,7 @@ App.SofiaStatusController = Ember.ObjectController.extend({
submit: function() { submit: function() {
// alert("Not implemented"); // alert("Not implemented");
// return false; // return false;
url = "/txtapi/lua?create_gateway.lua%20" + url = "/txtapi/lua?portal/create_gateway.lua%20" +
$("#gateway_name").val() + "%20" + $("#gateway_name").val() + "%20" +
$("#gateway_realm").val() + "%20" + $("#gateway_realm").val() + "%20" +
$("#gateway_username").val() + "%20" + $("#gateway_username").val() + "%20" +
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论