Skip to content

Commit

Permalink
Fix JQMIGRATE: jQuery.fn.click() event shorthand is deprecated.
Browse files Browse the repository at this point in the history
  • Loading branch information
tangar76 committed Apr 15, 2022
1 parent 1b6a212 commit cad9f54
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion view/adminhtml/templates/popup_messages.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ require([
'jquery',
'Magento_Ui/js/modal/alert'
], function ($, alert) {
$('.swissup__action-info-message').click(function(e) {
$('.swissup__action-info-message').on('click', function(e) {
e.preventDefault();
var context = '#swissup-popup-' + $(this).attr('data-target');
alert({
Expand Down
2 changes: 1 addition & 1 deletion view/adminhtml/web/js/system-config/item-appender.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ define([
.addClass(options.togglerClass)
.appendTo(element);

$(document).click(function (event) {
$(document).on('click', function (event) {
var $appendedContent = $toggler.siblings('.' + options.appendedClass);

if ($toggler.get(0) === event.target) {
Expand Down

0 comments on commit cad9f54

Please sign in to comment.