mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-10-04 02:07:13 +00:00
Improve source view and add qrcode for urls
The qr-code for urls is added so that these urls are easy to copy into a phone. Then buttons for copying them into the clipboard have been added.
This commit is contained in:
@@ -83,3 +83,13 @@ elmApp.ports.requestUiSettings.subscribe(function(args) {
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
var docspell_clipboards = {};
|
||||
|
||||
elmApp.ports.initClipboard.subscribe(function(args) {
|
||||
var page = args[0];
|
||||
if (!docspell_clipboards[page]) {
|
||||
var sel = args[1];
|
||||
docspell_clipboards[page] = new ClipboardJS(sel);
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user