Ref #16602 - Add an unique ID for the ignore button

Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2021-03-15 02:01:59 +01:00
parent dbf7b5d5e0
commit a252ad8ad4
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889

View File

@ -137,7 +137,7 @@ var ErrorReport = {
buttonHtml += Functions.getImage('s_cog', Messages.strChangeReportSettings);
buttonHtml += '</a>';
buttonHtml += '<a href="#" id="ignore_error">';
buttonHtml += '<a href="#" id="ignore_error_' + key + '">';
buttonHtml += Functions.getImage('b_close', Messages.strIgnore);
buttonHtml += '</a>';
@ -146,7 +146,7 @@ var ErrorReport = {
$div.append($buttons);
$div.appendTo(document.body);
$(document).on('click', '#show_error_report_' + key, ErrorReport.createReportDialog);
$(document).on('click', '#ignore_error', ErrorReport.removeErrorNotification);
$(document).on('click', '#ignore_error_' + key, ErrorReport.removeErrorNotification);
},
/**
* Removes the notification if it was displayed before