26 lines
732 B
JavaScript
26 lines
732 B
JavaScript
/**
|
|
* Opens a new tab in the tabbed worklist environment using
|
|
* a given study and new tab title.
|
|
*
|
|
* @param studyInstanceUid The UID of the Study to be opened
|
|
* @param title The title to be used for the tab heading
|
|
*/
|
|
openNewTab = function(studyInstanceUid, title) {
|
|
console.log('openNewTab');
|
|
|
|
// Generate a unique ID to represent this tab
|
|
// We can't just use the Mongo entry ID because
|
|
// then it will change after hot-reloading.
|
|
var contentid = uuid.new();
|
|
|
|
// Update the ViewerData global object
|
|
ViewerData[contentid] = {
|
|
title: title,
|
|
contentid: contentid,
|
|
studyInstanceUids: [studyInstanceUid]
|
|
};
|
|
|
|
// Switch to the new tab
|
|
switchToTab(contentid);
|
|
};
|