1
0
mirror of https://github.com/ZeroDream-CN/PHPMC7 synced 2024-11-24 04:52:54 +08:00

修复手残bug

不小心误删了保存设置的代码233
This commit is contained in:
Akkariin Meiko 2018-10-07 14:31:58 +08:00
parent f4eb01463d
commit 0794b18efc
2 changed files with 22 additions and 1 deletions

View File

@ -102,6 +102,27 @@
}
});
}
function saveConfig() {
var htmlobj = $.ajax({
url: "/?action=saveconfig",
async:true,
timeout:5000,
data: {
SiteName: $("#SiteName").val(),
Description: $("#Description").val(),
Theme: $("#Theme").val()
},
error: function() {
window.parent.frames.showmsg(htmlobj.responseText);
},
success: function() {
console.log(htmlobj.responseText);
window.parent.frames.showmsg(htmlobj.responseText);
location = '?page=setting'
return;
}
});
}
window.onload = function() {
checkUpdate();
}

View File

@ -1,7 +1,7 @@
<?php
// PHPMC 7 Version define
// Don't change this, because it will interfere your update.
define("PHPMC_VERSION", "7.3.3200");
define("PHPMC_VERSION", "7.3.3233");
include(ROOT . "/include/core/PHPMC/Event.php");
include(ROOT . "/include/core/PHPMC/User.php");