* testcase: fix picker change not work after reload page.

This commit is contained in:
sunhao
2023-10-19 16:04:14 +08:00
parent b5497a15b0
commit 650b0e0960
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -6,11 +6,11 @@ window.renderModuleItem = function(result, info)
return result;
}
function toggleLib(event)
window.toggleLib = function(event)
{
const libID = $(event.target).val();
const link = $.createLink('testcase','importFromLib','productID=' + productID + '&branch=' + branch + '&libID=' + libID);
loadPage(link, '#main');
loadPage(link, '#mainContent');
}
$(document).off('click', '.import-btn').on('click', '.import-btn', function()
+1 -1
View File
@@ -33,7 +33,7 @@ featureBar
set::items($libraries),
set::value($libID),
set::placeholder($lang->testcase->placeholder->selectLib),
on::change('toggleLib'),
bind::change("window.toggleLib(event)")
)
),
);