|
@@ -57,12 +57,13 @@
|
|
/*
|
|
/*
|
|
Usage Example:
|
|
Usage Example:
|
|
var apiObject = {
|
|
var apiObject = {
|
|
- api: "/system/myfunction",
|
|
|
|
|
|
+ api: "system/myfunction",
|
|
data: {message: "Hello World"},
|
|
data: {message: "Hello World"},
|
|
title: "<i class='red exclamation triangle icon'></i> Danger Operation <i class='red exclamation triangle icon'></i>",
|
|
title: "<i class='red exclamation triangle icon'></i> Danger Operation <i class='red exclamation triangle icon'></i>",
|
|
desc: "Please enter your password to confirm operation.",
|
|
desc: "Please enter your password to confirm operation.",
|
|
thisuser: true, //This username as default, set to false for allowing other user name to be entered
|
|
thisuser: true, //This username as default, set to false for allowing other user name to be entered
|
|
- method: "GET"
|
|
|
|
|
|
+ method: "GET",
|
|
|
|
+ success: "systemAO/myfunction/succ.html" //Redirection if success
|
|
}
|
|
}
|
|
|
|
|
|
ao_module_newfw({
|
|
ao_module_newfw({
|
|
@@ -128,11 +129,16 @@
|
|
if ($("#username").parent().hasClass("disabled") == false){
|
|
if ($("#username").parent().hasClass("disabled") == false){
|
|
$("#username").parent().addClass("error");
|
|
$("#username").parent().addClass("error");
|
|
}
|
|
}
|
|
|
|
+
|
|
}else{
|
|
}else{
|
|
if (ao_module_hasParentCallback()){
|
|
if (ao_module_hasParentCallback()){
|
|
ao_module_parentCallback(data);
|
|
ao_module_parentCallback(data);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if (actionObject.success != undefined){
|
|
|
|
+ window.top.location = "../../" + actionObject.success;
|
|
|
|
+ }
|
|
|
|
+
|
|
ao_module_close();
|
|
ao_module_close();
|
|
}
|
|
}
|
|
|
|
|