Cleanup around viewerbase and worklist
This commit is contained in:
1 parent
0365e9963d
commit
5363880e40
19 files changed
+132
-115
No files matched your search
@@ -104,7 +104,15 @@ Template.worklist.helpers({
|
||||
|
||||
Template.worklist.events({
|
||||
'click #tablist a[data-toggle="tab"]': function(e) {
|
||||
var contentId = $(e.currentTarget).data('target').replace("#", "");
|
||||
// If this tab is already active, do nothing
|
||||
var tabButton = $(e.currentTarget);
|
||||
var tabTitle = tabButton.parents('.tabTitle');
|
||||
if (tabTitle.hasClass("active")) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Otherwise, switch to the tab
|
||||
var contentId = tabButton.data('target').replace("#", "");
|
||||
switchToTab(contentId);
|
||||
}
|
||||
});
|
||||
@@ -46,6 +46,7 @@ body
|
||||
|
||||
&:hover
|
||||
background-color: #424242
|
||||
cursor: none
|
||||
|
||||
a
|
||||
color: white
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
<template name="worklistResult">
|
||||
{{ #if studies.count }}
|
||||
<table id="tblStudyList" class="table table-striped">
|
||||
<table id="tblStudyList" class="table table-striped noselect">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Patient Name</th>
|
||||
<th>Patient ID</th>
|
||||
<th>Accession#</th>
|
||||
<th>Accession #</th>
|
||||
<th>Study Date</th>
|
||||
<th>Modality</th>
|
||||
<th>Study Description</th>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template name="worklistStudy">
|
||||
<tr class="worklistStudy">
|
||||
<tr class="worklistStudy noselect">
|
||||
<td>
|
||||
{{patientName}}
|
||||
{{formatPN patientName}}
|
||||
</td>
|
||||
<td>
|
||||
{{patientId}}
|
||||
@@ -10,7 +10,7 @@
|
||||
{{accessionNumber}}
|
||||
</td>
|
||||
<td>
|
||||
{{studyDate}}
|
||||
{{formatDA studyDate}}
|
||||
</td>
|
||||
<td>
|
||||
{{modalities}}
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
Template.worklistStudy.events({
|
||||
'click': function () {
|
||||
openNewTab(this.studyInstanceUid, this.patientName);
|
||||
// Use the formatPN template helper to clean up the patient name
|
||||
var title = Blaze._globalHelpers['formatPN'](this.patientName);
|
||||
openNewTab(this.studyInstanceUid, title);
|
||||
}
|
||||
});
|
||||
Reference in new issue
Block a user