* refactor.

This commit is contained in:
sunhao
2023-08-11 11:13:48 +08:00
parent 6122393083
commit f325290aa7
-1
View File
@@ -3,7 +3,6 @@ window.onSearchFormResult = function(formName, response)
response.then(res => res.json())
.then(json => {
const $modal = $(formName).closest('.modal');
console.log('> onSearchFormResult', formName, $modal.length, json, $modal);
if($modal.length) loadModal(json.load, $modal.attr('id'));
else loadPage(json.load);
}).catch(console.error);