5
0
mirror of git://git.proxmox.com/git/proxmox-backup.git synced 2025-01-03 01:18:02 +03:00
proxmox-backup/www/panel
Gabriel Goller e66d75ca2f gui: remove document.execCommand calls
The `document.execCommand` call is deprecated since a few years [0] so I
went ahead and removed it. We only use it to copy stuff to the clipboard
and the recommended way now is to use `navigator.clipboard.writeText`
[1]. `writeText` is kind of new, but I think we'll be alright regarding
compatibility (Compat table is also available at [1]).

Making the handler functions async is okay because extjs executes the
handler and does not expect any result from it, nor does it need to do
some work afterwards.

[0]: https://developer.mozilla.org/en-US/docs/Web/API/document/execCommand
[1]: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard/writeText

Signed-off-by: Gabriel Goller <g.goller@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2024-03-25 16:42:54 +01:00
..
AccessControl.js www: use TFA widgets from widget toolkit 2021-11-17 09:44:55 +01:00
NodeInfo.js gui: remove document.execCommand calls 2024-03-25 16:42:54 +01:00
PrunePanel.js ui: prune: fix sending invalid parameters 2024-03-07 10:30:40 +01:00
StorageAndDisks.js fix #3690: ui: enable wipe-disk feature in system disk view 2023-11-28 18:39:45 +01:00
UsageChart.js ui: dark mode: add dark mode colors to the datastore usage charts 2023-03-28 15:24:41 +02:00
XtermJsConsole.js ui: add shell panel under administration 2020-11-04 18:16:49 +01:00