diff --git a/BTCPayServer.Tests/SeleniumTests.cs b/BTCPayServer.Tests/SeleniumTests.cs
index 0bd1260dc..4a9f58ed0 100644
--- a/BTCPayServer.Tests/SeleniumTests.cs
+++ b/BTCPayServer.Tests/SeleniumTests.cs
@@ -508,7 +508,7 @@ namespace BTCPayServer.Tests
{
await s.StartAsync();
s.RegisterNewUser();
- (string storeName, _) = s.CreateNewStore();
+ s.CreateNewStore();
s.Driver.FindElement(By.Id("StoreNav-CreateApp")).Click();
s.Driver.FindElement(By.Name("AppName")).SendKeys("PoS" + Guid.NewGuid());
@@ -546,7 +546,7 @@ namespace BTCPayServer.Tests
{
await s.StartAsync();
s.RegisterNewUser();
- (string storeName, _) = s.CreateNewStore();
+ s.CreateNewStore();
s.AddDerivationScheme();
s.Driver.FindElement(By.Id("StoreNav-CreateApp")).Click();
diff --git a/BTCPayServer/Views/Apps/UpdateCrowdfund.cshtml b/BTCPayServer/Views/Apps/UpdateCrowdfund.cshtml
index 2fb57f4bd..2189afc98 100644
--- a/BTCPayServer/Views/Apps/UpdateCrowdfund.cshtml
+++ b/BTCPayServer/Views/Apps/UpdateCrowdfund.cshtml
@@ -11,7 +11,6 @@
}
@section PageFootContent {
-
}
@@ -247,7 +246,15 @@
target="viewapp_@Model.AppId">
}
+
+
+
Other actions
+
+
+
diff --git a/BTCPayServer/Views/Apps/UpdatePointOfSale.cshtml b/BTCPayServer/Views/Apps/UpdatePointOfSale.cshtml
index 912a9d896..7cc11acb5 100644
--- a/BTCPayServer/Views/Apps/UpdatePointOfSale.cshtml
+++ b/BTCPayServer/Views/Apps/UpdatePointOfSale.cshtml
@@ -253,6 +253,13 @@
+Other actions
+
+
+
+
@section PageHeadContent {
@@ -260,8 +267,6 @@
@section PageFootContent {
-
-
+
+}
diff --git a/BTCPayServer/Views/PaymentRequest/EditPaymentRequest.cshtml b/BTCPayServer/Views/PaymentRequest/EditPaymentRequest.cshtml
index 5e42c4864..e7b9ebfaa 100644
--- a/BTCPayServer/Views/PaymentRequest/EditPaymentRequest.cshtml
+++ b/BTCPayServer/Views/PaymentRequest/EditPaymentRequest.cshtml
@@ -11,7 +11,6 @@
}
@section PageFootContent {
-
}
diff --git a/BTCPayServer/bundleconfig.json b/BTCPayServer/bundleconfig.json
index 024ff3b22..37999a753 100644
--- a/BTCPayServer/bundleconfig.json
+++ b/BTCPayServer/bundleconfig.json
@@ -94,18 +94,15 @@
{
"outputFileName": "wwwroot/bundles/crowdfund-admin-bundle.min.js",
"inputFiles": [
- "wwwroot/js/summernote-options.js",
"wwwroot/vendor/vuejs/vue.min.js",
- "wwwroot/vendor/babel-polyfill/polyfill.min.js",
- "wwwroot/vendor/highlightjs/highlight.min.js",
"wwwroot/vendor/summernote/summernote-bs5.js",
+ "wwwroot/js/summernote-options.js",
"wwwroot/crowdfund-admin/main.js"
]
},
{
"outputFileName": "wwwroot/bundles/crowdfund-admin-bundle.min.css",
"inputFiles": [
- "wwwroot/vendor/highlightjs/default.min.css",
"wwwroot/vendor/summernote/summernote-bs5.css",
"wwwroot/main/template-editor.css"
]
@@ -113,18 +110,15 @@
{
"outputFileName": "wwwroot/bundles/pos-admin-bundle.min.js",
"inputFiles": [
- "wwwroot/js/summernote-options.js",
"wwwroot/vendor/vuejs/vue.min.js",
- "wwwroot/vendor/babel-polyfill/polyfill.min.js",
- "wwwroot/vendor/highlightjs/highlight.min.js",
"wwwroot/vendor/summernote/summernote-bs5.js",
+ "wwwroot/js/summernote-options.js",
"wwwroot/pos-admin/main.js"
]
},
{
"outputFileName": "wwwroot/bundles/pos-admin-bundle.min.css",
"inputFiles": [
- "wwwroot/vendor/highlightjs/default.min.css",
"wwwroot/vendor/summernote/summernote-bs5.css",
"wwwroot/main/template-editor.css"
]
@@ -175,6 +169,7 @@
"wwwroot/vendor/animejs/anime.min.js",
"wwwroot/vendor/moment/moment.min.js",
"wwwroot/js/copy-to-clipboard.js",
+ "wwwroot/main/utils.js",
"wwwroot/payment-request/**/*.js"
],
"minify": {
diff --git a/BTCPayServer/wwwroot/crowdfund-admin/main.js b/BTCPayServer/wwwroot/crowdfund-admin/main.js
index c4e756716..e8dadd035 100644
--- a/BTCPayServer/wwwroot/crowdfund-admin/main.js
+++ b/BTCPayServer/wwwroot/crowdfund-admin/main.js
@@ -1,4 +1,3 @@
-hljs.initHighlightingOnLoad();
-$(document).ready(function () {
- $(".richtext").summernote(window.summernoteOptions());
-});
+document.addEventListener('DOMContentLoaded', () => {
+ $('.richtext').summernote(window.summernoteOptions())
+})
diff --git a/BTCPayServer/wwwroot/js/copy-to-clipboard.js b/BTCPayServer/wwwroot/js/copy-to-clipboard.js
index 4ed9a0f2a..c8cd31d89 100644
--- a/BTCPayServer/wwwroot/js/copy-to-clipboard.js
+++ b/BTCPayServer/wwwroot/js/copy-to-clipboard.js
@@ -22,11 +22,11 @@ window.copyUrlToClipboard = function (e) {
document.addEventListener("DOMContentLoaded", () => {
delegate('click', '[data-clipboard]', e => {
- const data = e.target.getAttribute('data-clipboard')
+ const data = e.target.closest('[data-clipboard]').getAttribute('data-clipboard')
window.copyToClipboard(e, data)
})
delegate('click', '[data-clipboard-target]', e => {
- const selector = e.target.getAttribute('data-clipboard-target')
+ const selector = e.target.closest('[data-clipboard-target]').getAttribute('data-clipboard-target')
const target = document.querySelector(selector)
const data = target.innerText
window.copyToClipboard(e, data)
diff --git a/BTCPayServer/wwwroot/js/summernote-options.js b/BTCPayServer/wwwroot/js/summernote-options.js
index 79cbe4df7..0662855ca 100644
--- a/BTCPayServer/wwwroot/js/summernote-options.js
+++ b/BTCPayServer/wwwroot/js/summernote-options.js
@@ -1,12 +1,14 @@
-window.summernoteOptions = function() {
- return {
- minHeight: 300,
- tableClassName: 'table table-sm',
- insertTableMaxSize: {
- col: 5,
- row: 10
- },
- codeviewFilter: true,
- codeviewFilterRegex: new RegExp($.summernote.options.codeviewFilterRegex.source + '|<.*?( on\\w+?=.*?)>', 'gi')
+(function() {
+ window.summernoteOptions = function() {
+ return {
+ minHeight: 300,
+ tableClassName: 'table table-sm',
+ insertTableMaxSize: {
+ col: 5,
+ row: 10
+ },
+ codeviewFilter: true,
+ codeviewFilterRegex: new RegExp($.summernote.options.codeviewFilterRegex.source + '|<.*?( on\\w+?=.*?)>', 'gi')
+ }
}
-}
+})()
diff --git a/BTCPayServer/wwwroot/payment-request-admin/main.js b/BTCPayServer/wwwroot/payment-request-admin/main.js
index 6da30115a..e8dadd035 100644
--- a/BTCPayServer/wwwroot/payment-request-admin/main.js
+++ b/BTCPayServer/wwwroot/payment-request-admin/main.js
@@ -1,3 +1,3 @@
-$(document).ready(function() {
- $(".richtext").summernote(window.summernoteOptions());
-});
+document.addEventListener('DOMContentLoaded', () => {
+ $('.richtext').summernote(window.summernoteOptions())
+})
diff --git a/BTCPayServer/wwwroot/pos-admin/main.js b/BTCPayServer/wwwroot/pos-admin/main.js
index c4e756716..1944c0e41 100644
--- a/BTCPayServer/wwwroot/pos-admin/main.js
+++ b/BTCPayServer/wwwroot/pos-admin/main.js
@@ -1,4 +1,3 @@
-hljs.initHighlightingOnLoad();
-$(document).ready(function () {
- $(".richtext").summernote(window.summernoteOptions());
+document.addEventListener('DOMContentLoaded', () => {
+ $('.richtext').summernote(window.summernoteOptions())
});