* fix #module dropdown not hide when #lib chosen dropdown show.

This commit is contained in:
Catouse
2018-11-19 15:53:48 +08:00
parent 8be7a334bf
commit 7b89f7a1fc
+9 -3
View File
@@ -14,16 +14,22 @@ $(function()
$('#contentBox').addClass('hidden');
$('#urlBox').removeClass('hidden');
}
})
});
// hide #module chosen dropdown on #lib dropdown show
$('#lib').on('chosen:showing_dropdown', function()
{
$('#module').trigger('chosen:close');
});
})
function loadDocModule(libID)
{
link = createLink('doc', 'ajaxGetChild', 'libID=' + libID);
$.post(link, function(data)
{
{
$('#module').replaceWith(data);
$('#module_chosen').remove();
$('#module').chosen();
})
});
}