Implemented back button to close detail dialog
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user