diff --git a/js/src/error_report.js b/js/src/error_report.js index da56249ffd..db5c2fab6e 100644 --- a/js/src/error_report.js +++ b/js/src/error_report.js @@ -114,19 +114,19 @@ var ErrorReport = { * @return {void} */ showErrorNotification: function () { - - var $div = $( - '
' - ).append( - Functions.getImage('s_error') + Messages.strErrorOccurred - ); - - var $buttons = $(''); var key = Math.random().toString(36).substring(2, 12); while (key in ErrorReport.keyDict) { key = Math.random().toString(36).substring(2, 12); } ErrorReport.keyDict[key] = 1; + + var $div = $( + '' + ).append( + Functions.getImage('s_error') + Messages.strErrorOccurred + ); + + var $buttons = $(''); var buttonHtml = ''; @@ -136,7 +136,7 @@ var ErrorReport = { buttonHtml += Functions.getImage('s_cog', Messages.strChangeReportSettings); buttonHtml += ''; - buttonHtml += ''; + buttonHtml += ''; buttonHtml += Functions.getImage('b_close', Messages.strIgnore); buttonHtml += ''; @@ -158,7 +158,7 @@ var ErrorReport = { // don't remove the hash fragment by navigating to # e.preventDefault(); } - $('.error_message').fadeOut(function () { + $('#error_notification_' + $(this).data('notification-id')).fadeOut(function () { $(this).remove(); }); },