refactoring
This commit is contained in:
@@ -5,6 +5,7 @@ class BatchCodeSelectInitializer {
|
|||||||
Select2.initializeSelectElement(
|
Select2.initializeSelectElement(
|
||||||
{
|
{
|
||||||
selectElement: batchCodeSelectElement,
|
selectElement: batchCodeSelectElement,
|
||||||
|
minimumInputLength: 4,
|
||||||
textOfOption2Select: urlSearchParam.get(),
|
textOfOption2Select: urlSearchParam.get(),
|
||||||
onSelectOptionHavingValueAndText: (id, text) => {
|
onSelectOptionHavingValueAndText: (id, text) => {
|
||||||
BatchCodeSelectInitializer.#onBatchCodeSelected(
|
BatchCodeSelectInitializer.#onBatchCodeSelected(
|
||||||
@@ -14,8 +15,7 @@ class BatchCodeSelectInitializer {
|
|||||||
batchCodeDetailsView: batchCodeDetailsView
|
batchCodeDetailsView: batchCodeDetailsView
|
||||||
});
|
});
|
||||||
urlSearchParam.set(text);
|
urlSearchParam.set(text);
|
||||||
},
|
}
|
||||||
minimumInputLength: 4
|
|
||||||
});
|
});
|
||||||
batchCodeSelectElement.select2('open');
|
batchCodeSelectElement.select2('open');
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,12 +10,12 @@ class PageInitializer {
|
|||||||
Select2.initializeSelectElement(
|
Select2.initializeSelectElement(
|
||||||
{
|
{
|
||||||
selectElement: symptomSelectElement,
|
selectElement: symptomSelectElement,
|
||||||
|
minimumInputLength: 0,
|
||||||
textOfOption2Select: urlSearchParam.get(),
|
textOfOption2Select: urlSearchParam.get(),
|
||||||
onSelectOptionHavingValueAndText: (id, text) => {
|
onSelectOptionHavingValueAndText: (id, text) => {
|
||||||
prrByVaccineTableView.displayPrrByVaccineTable4Symptom(id, text);
|
prrByVaccineTableView.displayPrrByVaccineTable4Symptom(id, text);
|
||||||
urlSearchParam.set(text);
|
urlSearchParam.set(text);
|
||||||
},
|
}
|
||||||
minimumInputLength: 0
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user