From a2b3fe0ff176aa8799a709bf5148c72d975f0d83 Mon Sep 17 00:00:00 2001 From: liyuchun Date: Tue, 19 Oct 2021 19:17:15 +0800 Subject: [PATCH] * Fix bug #15636. --- module/api/js/common.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/module/api/js/common.js b/module/api/js/common.js index 6f915d1af2..104b844013 100644 --- a/module/api/js/common.js +++ b/module/api/js/common.js @@ -1,9 +1,11 @@ function loadDocModule(libID) { - var link = createLink('api', 'ajaxGetChild', 'libID=' + libID + '&type=parent'); + var link = createLink('api', 'ajaxGetChild', 'libID=' + libID + '&type=module'); $.post(link, function(data) { - $('#module').empty().append($(data).children()).trigger('chosen:updated'); + $('#module').replaceWith(data); + $('#module_chosen').remove(); + $('#module').chosen(); }); } /** @@ -426,7 +428,7 @@ try { - + ` });