Implemented back button to close detail dialog

This commit is contained in:
Thaum
2015-03-16 13:55:15 +00:00
parent 4d64c36df9
commit 6be823ad15
2 changed files with 34 additions and 3 deletions

View File

@@ -1,3 +1,11 @@
Template.layout.rendered = function() {
$(window).on('popstate', GlobalUI.popStateHandler);
};
Template.layout.destroyed = function() {
$(window).off('popstate', GlobalUI.popStateHandler);
};
Template.layout.helpers({
notSelected: function(){
return Session.get("global.ui.detailShow")? "not-selected" : null;