Ref #16602 - Add an unique ID for the ignore button
Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
parent
dbf7b5d5e0
commit
a252ad8ad4
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user