PWV-15: Removing themeSelectorModal from DOM

This commit is contained in:
Bruno Alves de Faria committed 2017-03-21 10:16:46 -03:00
1 parent 0153354004
commit 02a97d4aa6
7 files changed
+56 -49

No files matched your search

@@ -1,6 +1,9 @@
import { Meteor } from 'meteor/meteor';
import { Template } from 'meteor/templating';
import { ReactiveVar } from 'meteor/reactive-var';
import { Session } from 'meteor/session';
import { Router } from 'meteor/iron:router';
import { OHIF } from 'meteor/ohif:core';
// Display the last login modal as default
Session.setDefault('displayLastLoginModal', true);
@@ -32,13 +35,15 @@ Template.userAccountMenu.helpers({
});
Template.userAccountMenu.events({
'click #serverInformation': function() {
'click #serverInformation'() {
$('#serverInformationModal').modal('show');
},
'click #themeSelector': function() {
$('#themeSelectorModal').modal('show');
'click #themeSelector'() {
OHIF.ui.showDialog('themeSelectorModal');
},
'click #logoutButton': function() {
'click #logoutButton'() {
Meteor.logout(function() {
Router.go('/entrySignIn');
});
@@ -122,4 +127,4 @@ Template.userAccountMenu.onCreated(function userAccountMenuCreated() {
});
});
});
});