From 2cac23d5328209dbf8f7d92051f6dd071fb8ecae Mon Sep 17 00:00:00 2001 From: alokhyland <139326173+alokhyland@users.noreply.github.com> Date: Mon, 16 Sep 2024 16:19:41 +0530 Subject: [PATCH] Revert "WEBUI-1579: Clear button in select all functionality shows csp error" This reverts commit 963a42e55391c0431032423197fd7269c46d722b. --- addons/nuxeo-csv/elements/nuxeo-document-import-csv.js | 5 ++--- elements/nuxeo-selection/nuxeo-selection-toolbar.js | 10 ++++------ elements/workflow/nuxeo-document-task.js | 5 ++--- 3 files changed, 8 insertions(+), 12 deletions(-) diff --git a/addons/nuxeo-csv/elements/nuxeo-document-import-csv.js b/addons/nuxeo-csv/elements/nuxeo-document-import-csv.js index 67d312373a..beb8e5ae1d 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,8 +581,7 @@ Polymer({ } }, - _showUploadDialog(e) { - e.preventDefault(); + _showUploadDialog() { this.$.uploadFiles.click(); }, diff --git a/elements/nuxeo-selection/nuxeo-selection-toolbar.js b/elements/nuxeo-selection/nuxeo-selection-toolbar.js index c686f2b58a..f941faeecc 100644 --- a/elements/nuxeo-selection/nuxeo-selection-toolbar.js +++ b/elements/nuxeo-selection/nuxeo-selection-toolbar.js @@ -112,7 +112,7 @@ Polymer({ [[i18n('selectionToolbar.selected.items', selectedItems.length)]] - + [[i18n('selectionToolbar.display.selection')]] @@ -121,7 +121,7 @@ Polymer({ [[i18n('selectionToolbar.selected.all', _resultsCount)]] - + [[i18n('command.clear')]] @@ -188,13 +188,11 @@ Polymer({ this.hidden = !this.selectedItems || this.selectedItems.length === 0; }, - toogleSelectedItemsPopup(e) { - e.preventDefault(); + toogleSelectedItemsPopup() { this.$$('#selectedItemsPopup').toggle(); }, - clearSelection(e) { - e.preventDefault(); + clearSelection() { this.fire('clear-selected-items'); }, }); diff --git a/elements/workflow/nuxeo-document-task.js b/elements/workflow/nuxeo-document-task.js index 28a6e35a20..139fe72f40 100644 --- a/elements/workflow/nuxeo-document-task.js +++ b/elements/workflow/nuxeo-document-task.js @@ -158,7 +158,7 @@ Polymer({ - [[i18n('tasks.viewGraph')]] + [[i18n('tasks.viewGraph')]]