Moved printed character sheets to their own page
This makes sure the entire printed sheet is rendered before the browser attempts to print it, solving all manner of errors
This commit is contained in:
@@ -168,6 +168,9 @@ Template.characterSheet.helpers({
|
||||
printing: function(){
|
||||
return Session.get("isPrinting");
|
||||
},
|
||||
printUrl: function(){
|
||||
return `/character/${this._id}/${this.name || "-"}/print`
|
||||
},
|
||||
selectedTab: function(){
|
||||
return getTab(this._id);
|
||||
},
|
||||
@@ -184,8 +187,8 @@ Template.characterSheet.helpers({
|
||||
const step = Session.get("newUserExperienceStep");
|
||||
if (selected == tab) return false;
|
||||
return (tab === 1 && step === 0) ||
|
||||
(tab === 5 && step === 1) ||
|
||||
(tab === 0 && step === 2);
|
||||
(tab === 5 && step === 1) ||
|
||||
(tab === 0 && step === 2);
|
||||
},
|
||||
});
|
||||
|
||||
@@ -238,7 +241,4 @@ Template.characterSheet.events({
|
||||
element: event.currentTarget.parentElement.parentElement,
|
||||
});
|
||||
},
|
||||
"click #printButton": function(event, instance){
|
||||
print();
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user