Removing optionsModal from DOM
This commit is contained in:
1 parent
02a97d4aa6
commit
dd745e3f65
19 files changed
+110
-125
No files matched your search
@@ -1,5 +1,6 @@
|
||||
import { Template } from 'meteor/templating';
|
||||
import { Session } from 'meteor/session';
|
||||
import { OHIF } from 'meteor/ohif:core';
|
||||
import { Viewerbase } from 'meteor/ohif:viewerbase';
|
||||
|
||||
Template.toolbarSection.helpers({
|
||||
@@ -233,14 +234,9 @@ Template.toolbarSection.events({
|
||||
},
|
||||
|
||||
'click #toggleTrial'(event) {
|
||||
const $this = $(event.currentTarget);
|
||||
|
||||
// Stop here if the tool is disabled
|
||||
if ($this.hasClass('disabled')) {
|
||||
return;
|
||||
if (!$(event.currentTarget).hasClass('disabled')) {
|
||||
OHIF.ui.showDialog('trialOptionsModal');
|
||||
}
|
||||
|
||||
$('#optionsModal').modal();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user