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);
|
||||
}
|
||||
});
|
||||
Reference in new issue
Block a user