studyDateList template is moved inside hidingPanel
This commit is contained in:
1 parent
a528e52dbc
commit
83714e2e85
10 files changed
+76
-52
No files matched your search
@@ -8,6 +8,7 @@ Template.studyDateList.onCreated(function(){
|
||||
|
||||
|
||||
Template.studyDateList.onRendered(function(){
|
||||
|
||||
// Add Study dates to Timepoints
|
||||
this.patientStudies.forEach(function(study) {
|
||||
Timepoints.insert({
|
||||
@@ -16,8 +17,13 @@ Template.studyDateList.onRendered(function(){
|
||||
});
|
||||
});
|
||||
|
||||
// Selected date option
|
||||
$('#selectStudyDate option[value="'+this.selectedDate+'"]').prop('selected', true);
|
||||
// Selected date option in combobox
|
||||
var self = this;
|
||||
$('#selectStudyDate option').filter(function () {
|
||||
if ($(this).html() === self.selectedDate) {
|
||||
$(this).prop('selected', true);
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user