From fa612fe64e7b8cd592675afa44b07e2abe635e47 Mon Sep 17 00:00:00 2001 From: Mohamed Ashraf Date: Tue, 25 Jun 2013 22:26:31 +0200 Subject: [PATCH] removed onclick and used $.fn.on to register callbacks --- js/error_report.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/js/error_report.js b/js/error_report.js index 5ecbe2abcc..1f18643551 100644 --- a/js/error_report.js +++ b/js/error_report.js @@ -106,19 +106,19 @@ function showErrorNotification() { $buttons = $('
') button_html = ''; - button_html += '' - button_html += '' - button_html += '' $buttons.html(button_html) $div.append($buttons) $div.appendTo(document.body) $("#change_error_settings").on("click", go_to_settings) - $("#change_error_settings").on("click", go_to_settings) - $("#change_error_settings").on("click", go_to_settings) + $("#show_error_report").on("click", createReportDialog) + $("#ignore_error").on("click", removeErrorNotification) } function removeErrorNotification() {