* Adjust the change event for module picker.

This commit is contained in:
daitingting
2023-07-15 07:55:53 +00:00
parent 78f2010207
commit 2a30fc59da
2 changed files with 7 additions and 5 deletions
+4 -2
View File
@@ -10,14 +10,14 @@ function changeProduct(event)
function changeBranch(event)
{
const productID = $('#product').val();
const productID = $('[name=product]').val();
loadProductModules(productID);
loadProductStories(productID);
}
function clickRefresh(event)
{
const productID = $('#product').val();
const productID = $('[name=product]').val();
loadProductModules(productID);
}
@@ -77,6 +77,8 @@ function loadProductModules(productID)
data = JSON.parse(data);
$modulePicker.render({items: data});
$modulePicker.$.changeState({value: ''});
$('#module').next('.input-group-addon').toggleClass('hidden', data.length > 1);
}
})
}
+3 -3
View File
@@ -63,9 +63,9 @@ formPanel
set::items($moduleOptionMenu),
set::value($currentModuleID)
),
count($moduleOptionMenu) == 1 ? span
span
(
set('class', 'input-group-addon'),
set('class', 'input-group-addon' . (count($moduleOptionMenu) > 1 ? ' hidden' : '')),
a
(
set('class', 'mr-2'),
@@ -80,7 +80,7 @@ formPanel
set('href', 'javascript:void(0)'),
icon('refresh')
)
) : null
),
)
),
),