Remove some subscription / reactivity / caching bugs and the unnecessary PatientLocations collection

This commit is contained in:
Erik Ziegler committed 2016-02-10 16:38:49 +01:00
1 parent 7d42456f57
commit 9cde04bcfe
43 files changed
+321 -234

No files matched your search

@@ -1,5 +1,5 @@
<template name="worklistResult">
<table id="tblStudyList" class="table table-striped noselect">
<table id="tblStudyList" class="worklistResult table table-striped noselect">
<thead>
<tr>
<th>
@@ -115,6 +115,20 @@ function search() {
});
}
Template.worklistResult.onCreated(function() {
console.log('WorklistResult onCreated!');
var self = this;
if (Worklist.subscriptions) {
Worklist.subscriptions.forEach(function(collectionName) {
self.subscribe(collectionName);
});
}
});
Template.worklistResult.onDestroyed(function() {
console.log('WorklistResult onDestroyed!');
});
Template.worklistResult.events({
'keydown input': function(e) {
if (e.which === 13) { // Enter
@@ -15,8 +15,14 @@ table#tblStudyList
#numImages.worklist-search, #modality.worklist-search
visibility: hidden
input.worklist-search
height: 25px
background-color: #888888
width: 100%
tbody
tr
height: 20px
padding: 4px
border: 1px solid #282828
background-color: black