Merge userManagement branch to master

This commit is contained in:
Aysel Afsar committed 2016-02-14 20:45:04 -05:00
commit 3b7330ca75
37 files changed
+1829 -165

No files matched your search

@@ -0,0 +1,44 @@
Template.lesionTrackerLayout.events({
'click #logoutButton': function() {
Meteor.logout(function(){
Router.go('/entrySignIn');
});
},
'click #changePassword': function() {
Router.go('/changePassword');
}
});
Template.lesionTrackerLayout.helpers({
'fullName': function() {
return Meteor.user().profile.fullName;
}
});
Template.lesionTrackerLayout.onCreated(function() {
// Show countdown dialog
var handle;
$(document).on('TriggerOpenTimeoutCountdownDialog', function (e, leftTime) {
// TODO: Show modal dialog
handle = setInterval(function() {
leftTime --;
// Set countdownDialogLeftTime session
Session.set("countdownDialogLeftTime", leftTime);
// Show dialog
if ($("#timeoutCountdownDialog").css("display") == "none") {
$("#timeoutCountdownDialog").css("display", "block");
}
}, 1000);
});
$(document).on('TriggerCloseTimeoutCountdownDialog', function (e) {
$("#timeoutCountdownDialog").css("display", "none");
if (handle) {
clearInterval(handle);
// Close the dialog
$("#timeoutCountdownDialog").css("display", "none");
}
});
});