Skip to content

Commit

Permalink
Fix Event triggered message
Browse files Browse the repository at this point in the history
  • Loading branch information
Abderrazak Tigiti authored and sypets committed Jan 7, 2025
1 parent be99af2 commit 223ba9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
6 changes: 1 addition & 5 deletions Resources/Public/JavaScript/Backend/Modules/Brofix.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,7 @@ class Brofix {

$('.t3js-update-button').on('click', function() {
var $element = $(this);
var name = $element.attr('name');
var message = 'Event triggered';
if (name === 'refreshLinkList' || name === 'updateLinkList') {
message = $element.data('notification-message');
}
var message = $element.data('notification-message');
top.TYPO3.Notification.success(message);
});

Expand Down
6 changes: 1 addition & 5 deletions Resources/Public/JavaScript/Brofix.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,7 @@ define(['jquery'], function($) {

$('.t3js-update-button').on('click', function() {
var $element = $(this);
var name = $element.attr('name');
var message = 'Event triggered';
if (name === 'refreshLinkList' || name === 'updateLinkList') {
message = $element.data('notification-message');
}
var message = $element.data('notification-message');
top.TYPO3.Notification.success(message);
});
};
Expand Down

0 comments on commit 223ba9f

Please sign in to comment.