diff --git a/Resources/Private/Templates/Backend/Cards.html b/Resources/Private/Templates/Backend/Cards.html
index eb5138e6..129db3b7 100644
--- a/Resources/Private/Templates/Backend/Cards.html
+++ b/Resources/Private/Templates/Backend/Cards.html
@@ -1,5 +1,6 @@
diff --git a/Resources/Private/Templates/Backend/FlashMessages.html b/Resources/Private/Templates/Backend/FlashMessages.html
index 3ef2b14d..fb52251f 100755
--- a/Resources/Private/Templates/Backend/FlashMessages.html
+++ b/Resources/Private/Templates/Backend/FlashMessages.html
@@ -1,6 +1,5 @@
diff --git a/Resources/Private/Templates/Backend/Index.html b/Resources/Private/Templates/Backend/Index.html
index 7435c260..1dae7e3c 100755
--- a/Resources/Private/Templates/Backend/Index.html
+++ b/Resources/Private/Templates/Backend/Index.html
@@ -1,6 +1,6 @@
@@ -13,11 +13,6 @@
-
Presents supported styles for TYPO3 backend modules.
-
-
Styleguide examples
-
-
For information on supported styles and example code, see the link tree on the left.
Example page trees
diff --git a/Resources/Public/JavaScript/filter.js b/Resources/Public/JavaScript/filter.js
index 65f74145..1bf3aae0 100644
--- a/Resources/Public/JavaScript/filter.js
+++ b/Resources/Public/JavaScript/filter.js
@@ -21,15 +21,11 @@ import DateTimePicker from '@typo3/backend/date-time-picker.js';
class Filter {
constructor() {
DocumentService.ready().then(() => {
- this.initializeDateTimePickers();
+ document.querySelectorAll('.t3js-datetimepicker')?.forEach((element) => {
+ DateTimePicker.initialize(element);
+ })
});
}
-
- initializeDateTimePickers() {
- document.querySelectorAll('.t3js-datetimepicker')?.forEach((element) => {
- DateTimePicker.initialize(element);
- })
- }
}
export default new Filter();
diff --git a/Resources/Public/JavaScript/processing-indicator.js b/Resources/Public/JavaScript/processing-indicator.js
index 45daa763..0b954a9e 100644
--- a/Resources/Public/JavaScript/processing-indicator.js
+++ b/Resources/Public/JavaScript/processing-indicator.js
@@ -11,9 +11,6 @@
* The TYPO3 project - inspiring people to share!
*/
-/**
- * Javascript functions regarding the TCA module
- */
import NProgress from 'nprogress';
import Icons from '@typo3/backend/icons.js';
import Notification from '@typo3/backend/notification.js';
@@ -27,29 +24,24 @@ Icons.getIcon('spinner-circle', Icons.sizes.small).then(function(spinner) {
e.preventDefault();
let originalIcon = button.querySelector('span').outerHTML;
let disabledButton = button.parentNode.querySelector('button.disabled');
-
e.target.querySelector('span').outerHTML = spinner;
NProgress.start();
itemProcessing++
e.target.classList.add('disabled');
-
// Trigger generate action
fetch(url).then((response) => {
if(response.status !== 200) {
return Promise.reject({message: 'Error ' + response.status + ' ' + response.statusText});
}
-
return response.json();
})
.then((json) => {
itemProcessing--
Notification.showMessage(json.title, json.body, json.status, 5);
-
// Hide nprogress only if all items done loading/processing
if(itemProcessing === 0) {
NProgress.done();
}
-
// Set button states
e.target.querySelector('.t3js-icon').outerHTML = originalIcon;
disabledButton.classList.remove('disabled');
@@ -58,7 +50,6 @@ Icons.getIcon('spinner-circle', Icons.sizes.small).then(function(spinner) {
}).catch((error) => {
// Action failed, reset to its original state
NProgress.done();
-
e.target.querySelector('.t3js-icon').outerHTML = originalIcon;
e.target.classList.remove('disabled');
Notification.error('', error.message, 5);
diff --git a/Resources/Public/JavaScript/render-notifications.js b/Resources/Public/JavaScript/render-notifications.js
index 1f2b5ae3..b7c97613 100644
--- a/Resources/Public/JavaScript/render-notifications.js
+++ b/Resources/Public/JavaScript/render-notifications.js
@@ -16,7 +16,7 @@ import ImmediateAction from '@typo3/backend/action-button/immediate-action.js';
import DeferredAction from '@typo3/backend/action-button/deferred-action.js';
/**
- * Action used when an operation execution time is unkown.
+ * Action used when an operation execution time is unknown.
*/
class RenderNotifications {
constructor() {
@@ -44,7 +44,6 @@ class RenderNotifications {
if (!includeActions) {
return [];
}
-
return [
{
label: 'Immediate action',