|
|
@ -113,7 +113,6 @@ const port = '@port'; |
|
|
|
|
|
|
|
$(function() { |
|
|
|
loadNetworkConfigs(); |
|
|
|
addCoreOrImsRow(); |
|
|
|
}); |
|
|
|
|
|
|
|
function loadNetworkConfigs() { |
|
|
@ -207,10 +206,6 @@ function addCoreOrImsRow(data) { |
|
|
|
|
|
|
|
function removeCoreOrImsRow(btn) { |
|
|
|
$(btn).closest('tr').remove(); |
|
|
|
// 至少保留一行 |
|
|
|
if ($('#coreOrImsTable tbody tr').length === 0) { |
|
|
|
addCoreOrImsRow(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
function getCoreOrImsConfigs() { |
|
|
@ -244,7 +239,6 @@ function submitAddConfig() { |
|
|
|
success: function(res) { |
|
|
|
form[0].reset(); |
|
|
|
$('#coreOrImsTable tbody').empty(); |
|
|
|
addCoreOrImsRow(); |
|
|
|
loadNetworkConfigs(); |
|
|
|
}, |
|
|
|
error: function() { |
|
|
|