diff options
| author | mhsanaei <ho3ein.sanaei@gmail.com> | 2024-07-07 12:55:59 +0300 |
|---|---|---|
| committer | mhsanaei <ho3ein.sanaei@gmail.com> | 2024-07-07 13:10:24 +0300 |
| commit | 7a51d2f2cccbc0add04518808415912a7217bc28 (patch) | |
| tree | cc4bce27d16caec5361d51de676eecd0c628ad0d /web/html | |
| parent | 02ae61fe6beb68ab8e5859a5eaa2b68514c0b454 (diff) | |
Typo fixed
Diffstat (limited to 'web/html')
| -rw-r--r-- | web/html/common/qrcode_modal.html | 8 | ||||
| -rw-r--r-- | web/html/xui/inbound_info_modal.html | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/web/html/common/qrcode_modal.html b/web/html/common/qrcode_modal.html index fd5a17b7..94e750c7 100644 --- a/web/html/common/qrcode_modal.html +++ b/web/html/common/qrcode_modal.html @@ -79,8 +79,8 @@ qrModal: qrModal, }, methods: { - copyToClipboard(elmentId, content) { - this.qrModal.clipboard = new ClipboardJS('#' + elmentId, { + copyToClipboard(elementId, content) { + this.qrModal.clipboard = new ClipboardJS('#' + elementId, { text: () => content, }); this.qrModal.clipboard.on('success', () => { @@ -88,9 +88,9 @@ this.qrModal.clipboard.destroy(); }); }, - setQrCode(elmentId, content) { + setQrCode(elementId, content) { new QRious({ - element: document.querySelector('#' + elmentId), + element: document.querySelector('#' + elementId), size: 400, value: content, background: 'white', diff --git a/web/html/xui/inbound_info_modal.html b/web/html/xui/inbound_info_modal.html index a6f34001..82c9cf62 100644 --- a/web/html/xui/inbound_info_modal.html +++ b/web/html/xui/inbound_info_modal.html @@ -494,8 +494,8 @@ }, }, methods: { - copyToClipboard(elmentId, content) { - this.infoModal.clipboard = new ClipboardJS('#' + elmentId, { + copyToClipboard(elementId, content) { + this.infoModal.clipboard = new ClipboardJS('#' + elementId, { text: () => content, }); this.infoModal.clipboard.on('success', () => { |
