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