|
@@ -95,7 +95,6 @@
|
|
|
<button class="ui basic icon button" onclick="logout();"><i class="sign-out icon"></i></button>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div id="errmsg" class="ui red message" style="display: none;"></div>
|
|
|
<div class="wrapper">
|
|
|
<div class="toolbar">
|
|
|
<div id="mainmenu" class="ui secondary vertical pointing menu">
|
|
@@ -287,65 +286,7 @@
|
|
|
window.location.hash = tabID;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
- //Generic functions
|
|
|
- function deleteEndpoint(ptype, epoint){
|
|
|
- if (confirm("Confirm remove proxy for :" + epoint + " (type: " + ptype + ")?")){
|
|
|
- $.ajax({
|
|
|
- url: "./del",
|
|
|
- data: {ep: epoint, ptype: ptype},
|
|
|
- success: function(){
|
|
|
- listVdirs();
|
|
|
- listSubd();
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- function setProxyRoot(){
|
|
|
- var newpr = $("#proxyRoot").val();
|
|
|
- if (newpr.trim() == ""){
|
|
|
- $("#proxyRoot").parent().addClass('error');
|
|
|
- return
|
|
|
- }else{
|
|
|
- $("#proxyRoot").parent().removeClass('error');
|
|
|
- }
|
|
|
|
|
|
- var rootReqTls = $("#rootReqTLS")[0].checked;
|
|
|
-
|
|
|
- //Create the endpoint by calling add
|
|
|
- $.ajax({
|
|
|
- url: "./add",
|
|
|
- data: {"type": "root", tls: rootReqTls, ep: newpr},
|
|
|
- success: function(data){
|
|
|
- if (data.error != undefined){
|
|
|
- alert(data.error);
|
|
|
- }else{
|
|
|
- //OK
|
|
|
- initRootInfo();
|
|
|
- $("#ProxyRootUpdate").stop().slideDown('fast').delay(3000).slideUp('fast');
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- //Show error message
|
|
|
- function errmsg(message){
|
|
|
- $("#errmsg").html(`<i class="red remove icon"></i> ${message}`);
|
|
|
- $("#errmsg").slideDown('fast').delay(5000).slideUp('fast');
|
|
|
- }
|
|
|
</script>
|
|
|
</body>
|
|
|
</html>
|