* testcase: fix picker change not work after reload page.
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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)")
|
||||
)
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user