From 72bce0c59fee907b19b80a3da802e8fd56b56ed4 Mon Sep 17 00:00:00 2001 From: alokhyland Date: Thu, 28 Nov 2024 14:33:24 +0530 Subject: [PATCH] WEBUI-1282: Allow Content Security Policy without script-src data --- .../elements/nuxeo-document-import-csv.js | 5 +++-- .../elements/nuxeo-liveconnect-box-link.js | 5 +++-- .../nuxeo-liveconnect-google-drive-link.js | 5 +++-- .../nuxeo-selection/nuxeo-selection-toolbar.js | 10 ++++++---- elements/workflow/nuxeo-document-task.js | 5 +++-- index.html | 5 +++++ .../main/resources/web/nuxeo.war/ui/config.jsp | 1 + .../main/resources/web/nuxeo.war/ui/index.jsp | 17 ++++++++++++----- 8 files changed, 36 insertions(+), 17 deletions(-) diff --git a/addons/nuxeo-csv/elements/nuxeo-document-import-csv.js b/addons/nuxeo-csv/elements/nuxeo-document-import-csv.js index beb8e5ae1d..67d312373a 100644 --- a/addons/nuxeo-csv/elements/nuxeo-document-import-csv.js +++ b/addons/nuxeo-csv/elements/nuxeo-document-import-csv.js @@ -276,7 +276,7 @@ Polymer({ @@ -581,7 +581,8 @@ Polymer({ } }, - _showUploadDialog() { + _showUploadDialog(e) { + e.preventDefault(); this.$.uploadFiles.click(); }, diff --git a/addons/nuxeo-liveconnect/elements/nuxeo-liveconnect-box-link.js b/addons/nuxeo-liveconnect/elements/nuxeo-liveconnect-box-link.js index 8802d63579..19ed50997c 100644 --- a/addons/nuxeo-liveconnect/elements/nuxeo-liveconnect-box-link.js +++ b/addons/nuxeo-liveconnect/elements/nuxeo-liveconnect-box-link.js @@ -64,7 +64,7 @@ Polymer({ is-available="{{isProviderAvailable}}" > - [[i18n('tasks.viewGraph')]] + [[i18n('tasks.viewGraph')]]
[[i18n(tasks.directive)]]
@@ -314,7 +314,8 @@ Polymer({ .finally(() => this._setProcessing(false)); }, - _toggleGraphDialog() { + _toggleGraphDialog(e) { + e.preventDefault(); this.$.graph.show(); }, diff --git a/index.html b/index.html index 71e4bd7359..d5847863ac 100644 --- a/index.html +++ b/index.html @@ -89,6 +89,10 @@ + - + - + - + - + - +