修复一些问题

1.修复切换节点不刷新内容的问题
2.修复显示样式
This commit is contained in:
znc15 2024-02-02 20:44:25 +08:00 committed by GitHub
parent 627f9d0128
commit dd58e52b4f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -123,11 +123,12 @@ $ss = Database::toArray(Database::search("nodes", Array("group" => "{$rs['group'
<script type="text/javascript" src="assets/configuration/prettify.js"></script> <script type="text/javascript" src="assets/configuration/prettify.js"></script>
<script type="text/javascript"> <script type="text/javascript">
prettyPrint(); prettyPrint();
</script>
<script type="text/javascript"> <script type="text/javascript">
prettyPrint(); prettyPrint();
window.onload = function() { window.onload = function() {
$('#server').change(function() { $('#server').change(function() {
if($(this).children('option:selected').val() != ''){ if ($(this).children('option:selected').val() !== '') {
location = "/?page=panel&module=configuration&server=" + $(this).children('option:selected').val(); location = "/?page=panel&module=configuration&server=" + $(this).children('option:selected').val();
} }
}); });