summaryrefslogtreecommitdiff
path: root/public/js
diff options
context:
space:
mode:
authorSheogorath2018-06-24 23:50:19 +0200
committerSheogorath2018-06-24 23:50:38 +0200
commit04d16e4d6efa771ece8770c726beca29b9d2ca61 (patch)
treeee0ddaf62383f71262afadd4f44e6c4fcddf5305 /public/js
parentd87505d5836ea1bad60c0e2c2a8aa25b9b4e1590 (diff)
Add Print icon to slide view
It redirects the user to the print view of the document. I claim that people should either be smart enough to use ctrl+P or ask someone who knows how to print a webpage. I don't want to babysit our users. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
Diffstat (limited to '')
-rw-r--r--public/js/slide.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/public/js/slide.js b/public/js/slide.js
index 59a352ec..1eb8dfd4 100644
--- a/public/js/slide.js
+++ b/public/js/slide.js
@@ -14,6 +14,7 @@ window.lastchangetime = window.lastchangeui.time.attr('data-updatetime')
updateLastChange()
const url = window.location.pathname
$('.ui-edit').attr('href', `${url}/edit`)
+$('.ui-print').attr('href', `${url}?print-pdf`)
$(document).ready(() => {
// tooltip