Bug fixing: Call search() method in change event of studyDate if studyDate input is not empty to prevent duplicated data. Enter key calls search() method when studyDate is empty

This commit is contained in:
Aysel Afsar 2016-02-19 17:06:20 -05:00
parent 1dc7eb71c0
commit 1497c06a52

View File

@ -180,7 +180,10 @@ Template.worklistResult.events({
var dates = dateRange.split("-");
studyDateFrom = dates[0];
studyDateTo = dates[1];
search();
if (dateRange !== "") {
search();
}
}
});