Added New Character Dialog

This commit is contained in:
Thaum
2015-03-30 13:53:33 +00:00
parent 631ef668b7
commit 51d697b894
8 changed files with 128 additions and 4 deletions

View File

@@ -75,9 +75,13 @@ this.GlobalUI = (function() {
}
};
var throttleBack = _.throttle(function(){
history.back();
}, 800, {trailing: false});
GlobalUI.closeDetail = function(){
if(!!(window.history && window.history.pushState)){
history.back();
throttleBack();
} else{
Session.set("global.ui.detailShow", false);
}