mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-11-05 09:00:20 +00:00
🐛 fix #9
This commit is contained in:
1 parent
7e0e947692
commit
5bb5e32758
6 files changed
+13
-9
No files matched your search
@@ -72,6 +72,9 @@ function showFormModal(modelSelector, formID, URL, getData) {
|
||||
|
||||
function addOrEditServer(server) {
|
||||
const modal = $('.server.modal')
|
||||
if (server) {
|
||||
server = JSON.parse(server)
|
||||
}
|
||||
modal.children('.header').text((server ? '修改' : '添加') + '服务器')
|
||||
modal.find('.positive.button').html(server ? '修改<i class="edit icon"></i>' : '添加<i class="add icon"></i>')
|
||||
modal.find('input[name=id]').val(server ? server.ID : null)
|
||||
|
||||
Reference in new issue
Block a user