Bug fixes for worklist and OHIF viewer. Trying to get tabbed worklist/viewer working
This commit is contained in:
parent
a538b5f07d
commit
9803046f2d
@ -32,3 +32,4 @@ arsnebula:reactive-promise
|
|||||||
promise
|
promise
|
||||||
stylus
|
stylus
|
||||||
fortawesome:fontawesome
|
fortawesome:fontawesome
|
||||||
|
random
|
||||||
|
|||||||
@ -28,7 +28,7 @@ Router.route('/viewer/:_id', {
|
|||||||
Session.set('studies', studies);
|
Session.set('studies', studies);
|
||||||
//Session.set(activeTabId, studies);
|
//Session.set(activeTabId, studies);
|
||||||
//Session.set('showContentInTab', true);
|
//Session.set('showContentInTab', true);
|
||||||
self.render('viewer');
|
//self.render('viewer');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -9,4 +9,7 @@
|
|||||||
-khtml-user-select: none
|
-khtml-user-select: none
|
||||||
-moz-user-select: none
|
-moz-user-select: none
|
||||||
-ms-user-select: none
|
-ms-user-select: none
|
||||||
user-select: none
|
user-select: none
|
||||||
|
|
||||||
|
.studyBrowser
|
||||||
|
width: auto
|
||||||
@ -26,6 +26,5 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
{{> yield}}
|
{{> yield}}
|
||||||
</template>
|
</template>
|
||||||
@ -1,14 +1,16 @@
|
|||||||
<template name="worklist">
|
<template name="worklist">
|
||||||
<div class="tabbable">
|
<div class="tabbable">
|
||||||
<ul id="tabs" class="nav nav-tabs" style="width:100%;">
|
<ul id="tabs" class="nav nav-tabs">
|
||||||
<li class="active">
|
<li class="active">
|
||||||
<a id="tabList" data-toggle="tab">Study List</a>
|
<a data-toggle="tab">Study List</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<div id="tabs-content" class="tab-content">
|
<div id="tabs-content" class="tab-content">
|
||||||
<div id="contentList" class="tab-pane active">
|
<div id="contentList" class="tab-pane active">
|
||||||
{{> worklistSearch }}
|
<div class="container">
|
||||||
{{> worklistResult }}
|
{{> worklistSearch }}
|
||||||
|
{{> worklistResult }}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -71,8 +71,8 @@ function addNewTab (data) {
|
|||||||
contentID = contentId;
|
contentID = contentId;
|
||||||
}
|
}
|
||||||
|
|
||||||
function insertContent () {
|
function insertContent() {
|
||||||
|
console.log('Include imageViewer template');
|
||||||
//Include imageViewer template
|
//Include imageViewer template
|
||||||
UI.insert( UI.render( Template.viewer ), $( '#'+contentID ).get(0) );
|
UI.insert( UI.render( Template.viewer ), $( '#'+contentID ).get(0) );
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,50 +1,21 @@
|
|||||||
html, body
|
|
||||||
height: 100%
|
|
||||||
margin: 0
|
|
||||||
padding: 0
|
|
||||||
background-color: white
|
|
||||||
color: black
|
|
||||||
|
|
||||||
|
|
||||||
div
|
|
||||||
margin: 0
|
|
||||||
padding: 0
|
|
||||||
|
|
||||||
|
|
||||||
/***********************************************/
|
/***********************************************/
|
||||||
/* CSS3 Close button */
|
/* CSS3 Close button */
|
||||||
/***********************************************/
|
/***********************************************/
|
||||||
|
|
||||||
.btnClose
|
.btnClose
|
||||||
top: 0
|
top: 0
|
||||||
right: 0
|
right: 0
|
||||||
bottom: 0
|
|
||||||
width: 20px
|
|
||||||
height: 20px
|
|
||||||
text-decoration: none
|
|
||||||
border: none
|
|
||||||
background-color: #fcfcfc
|
|
||||||
-moz-border-radius: 10px
|
|
||||||
-webkit-border-radius: 10px
|
|
||||||
border-radius: 10px
|
|
||||||
margin-left: 5px
|
|
||||||
font-weight: bold
|
|
||||||
|
|
||||||
.tabbable
|
|
||||||
cursor: pointer
|
|
||||||
position: absolute
|
|
||||||
top:0
|
|
||||||
left:0
|
|
||||||
bottom: 0
|
bottom: 0
|
||||||
right: 0
|
width: 20px
|
||||||
width: 100%
|
height: 20px
|
||||||
height: 100%
|
text-decoration: none
|
||||||
color: black
|
border: none
|
||||||
|
background-color: #fcfcfc
|
||||||
.tab-content
|
-moz-border-radius: 10px
|
||||||
position: absolute
|
-webkit-border-radius: 10px
|
||||||
top: 42px
|
border-radius: 10px
|
||||||
left: 0
|
margin-left: 5px
|
||||||
right: 0
|
font-weight: bold
|
||||||
bottom: 3px
|
|
||||||
|
#tabs
|
||||||
width: 100%
|
width: 100%
|
||||||
@ -1,5 +1,18 @@
|
|||||||
Template.worklistStudy.events({
|
Template.worklistStudy.events({
|
||||||
'click': function (){
|
'click': function (){
|
||||||
Router.go('viewer', {_id: this.studyInstanceUid});
|
Router.go('viewer', {_id: this.studyInstanceUid});
|
||||||
|
|
||||||
|
Session.set('openNewTabEvent', self);
|
||||||
|
var studyInstanceUid = this.studyInstanceUid;
|
||||||
|
Meteor.call('GetStudyMetadata', studyInstanceUid, function(error, study) {
|
||||||
|
//console.log(study);
|
||||||
|
sortStudy(study);
|
||||||
|
|
||||||
|
var studies = [study];
|
||||||
|
Session.set('studies', studies);
|
||||||
|
Session.set(activeTabId, studies);
|
||||||
|
Session.set('showContentInTab', true);
|
||||||
|
self.render('viewer');
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
Loading…
Reference in New Issue
Block a user