Update config.js

This commit is contained in:
Mr Chen
2024-05-26 13:58:52 +08:00
parent fd44a312f6
commit cc9a4b5536
+6 -2
View File
@@ -129,7 +129,9 @@ $('input[name="bind_ssl"]').click(function(){
console.log(rdata);
var to_https = window.location.href.replace('http','https');
showMsg(rdata.msg,function(){
window.location.href = to_https;
if (rdata.status){
window.location.href = to_https;
}
},{icon:rdata.status?1:2},5000);
},'json');
}
@@ -164,7 +166,9 @@ $('input[name="bind_ssl"]').click(function(){
$.post('/config/close_panel_ssl',{}, function(rdata){
var to_http = window.location.href.replace('https','http');
showMsg(rdata.msg,function(){
window.location.href = to_http;
if (rdata.status){
window.location.href = to_http;
}
},{icon:rdata.status?1:2},5000);
},'json');
}