v1.10.2.2

More AJAX!!!! Fixed bugs
This commit is contained in:
Aidaho12
2018-04-10 12:10:07 +06:00
parent b6624d91f8
commit 1e53c561ea
7 changed files with 97 additions and 34 deletions

View File

@@ -117,6 +117,7 @@ function showStats() {
success: function( data ) {
var form = $("#ajax").html();
$("#ajax").html(data);
window.history.pushState("Stats", "Stats", cur_url[0]+"?serv="+$("#serv").val());
}
} );
}
@@ -186,6 +187,28 @@ function showCompare() {
success: function( data ) {
var form = $("#ajax").html();
$("#ajax").html(data);
window.history.pushState("Compare", "Compare", cur_url[0]+"?serv="+$("#serv").val()+"&open=open&left="+$("#left").val()+"&right="+$("#right").val());
}
} );
}
function showConfig() {
$.ajax( {
url: "options.py",
data: {
serv: $("#serv").val(),
act: "configShow"
},
type: "GET",
beforeSend: function () {
NProgress.start();
},
complete: function () {
NProgress.done();
},
success: function( data ) {
var form = $("#ajax").html();
$("#ajax").html(data);
window.history.pushState("Show config", "Show config", cur_url[0]+"?serv="+$("#serv").val()+"&open=open");
}
} );
}