mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-12 22:26:08 -04:00
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>
This commit is contained in:
parent
d87505d583
commit
04d16e4d6e
3 changed files with 10 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue