Skip to content

Commit

Permalink
[FIX] Remove debug & correct JS
Browse files Browse the repository at this point in the history
  • Loading branch information
dhoffmann1979 committed Jan 25, 2024
1 parent bc27dd3 commit 8ea5384
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Classes/Controller/NewsletterController.php
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ public function testMailAjax(ServerRequestInterface $request): ResponseInterface
$request->getQueryParams()['email']
);
}
$event->setTestMailIsSendExternal(true);

$response = ObjectUtility::getJsonResponse();
$responseData = [
'status' => $status ?? $event->getStatus(),
Expand Down
3 changes: 2 additions & 1 deletion Resources/Private/Build/JavaScript/Module.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,8 @@ define(['jquery'], function($) {
counter++;
counterElement.innerHTML = counter.toString();
} else if(messageElement !== null && response.statusSeverity !== '' && response.status === true) {
messageElement.classList.remove('alert-success');
messageElement.classList.remove(...messageElement.classList);
messageElement.classList.add('alert');
messageElement.classList.add(response.statusSeverity);
messageElement.querySelector('.alert-heading').innerHTML = response.statusTitle;
messageElement.querySelector('p').innerHTML = response.statusMessage;
Expand Down
2 changes: 1 addition & 1 deletion Resources/Public/JavaScript/Luxletter/Module.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8ea5384

Please sign in to comment.