Skip to content

Commit

Permalink
Merge branch 'release/35.2.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
einpraegsam committed Apr 27, 2024
2 parents 8e64a1a + 3bb3c4b commit 2bb2686
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 2 deletions.
1 change: 1 addition & 0 deletions Documentation/Technical/Changelog/Index.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Double check if you have cleared all caches after installing a new LUX version t

| Version | Date | State | TYPO3 | Description |
|------------|------------|----------|----------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| 35.2.0 | 2024-04-27 | Feature | `11.5 + 12.4` | Extend frontend JS for another callback function for adding text anywhere in the DOM |
| 35.1.0 | 2024-04-22 | Feature | `11.5 + 12.4` | Add possibility to use an existing event in own JS after an action was performed |
| 35.0.2 | 2024-04-17 | Bugfix | `11.5 + 12.4` | Fix scoring calculation in frontend requests |
| 35.0.1 | 2024-04-11 | Bugfix | `11.5 + 12.4` | Prevent possible exception when opening A/B Testing module on an empty installation, update disallowed mail provider list |
Expand Down
28 changes: 28 additions & 0 deletions Resources/Private/Build/JavaScript/Frontend/Lux.js
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,34 @@ function LuxMain() {
document.title = response['configuration']['title'];
};

/**
* Callback for generalWorkflowActionCallback()
* "insertText" (part of the Enterprise Edition)
*
* @param response
*/
this.insertTextWorkflowAction = function(response) {
delayFunctionDispatcher(response['configuration']['delay'], 'insertText', response);
};

/**
* Callback for insertTextWorkflowAction() (after a delay function (e.g. pageLoadDelayFunction())
*
* @param response
*/
this.insertTextAfterDelay = function(response) {
let selection = response['configuration']['domselection'];
let text = response['configuration']['text'];
let elements = document.querySelectorAll(selection);
elements.forEach(function(element) {
if (element.getAttribute('value') !== null) {
element.setAttribute('value', text);
} else {
element.innerHTML = text;
}
});
};

/**
* Callback for generalWorkflowActionCallback()
* Not a real workflowAction but more a finisher action to stop asking for email addresses on email4link clicks if
Expand Down
2 changes: 1 addition & 1 deletion Resources/Public/JavaScript/Lux/Lux.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
'description' => 'Living User Experience - LUX - the Marketing Automation tool for TYPO3.
Turn your visitors to leads. Identification and profiling of your visitors within your TYPO3 website.',
'category' => 'plugin',
'version' => '35.1.0',
'version' => '35.2.0',
'author' => 'Alex Kellner',
'author_email' => '[email protected]',
'author_company' => 'in2code.de',
Expand Down

0 comments on commit 2bb2686

Please sign in to comment.