Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMohamed Ashraf <mohamed.ashraf.213@gmail.com>2013-06-26 00:26:31 +0400
committerMohamed Ashraf <mohamed.ashraf.213@gmail.com>2013-06-26 00:26:31 +0400
commitfa612fe64e7b8cd592675afa44b07e2abe635e47 (patch)
tree8849dc9858994d58d34db4d0978f363bd2a35be4 /js/error_report.js
parentabcfe1a11e03d82a4851b0a6e3d91f8cde1a3b45 (diff)
removed onclick and used $.fn.on to register callbacks
Diffstat (limited to 'js/error_report.js')
-rw-r--r--js/error_report.js10
1 files 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 = $('<div style="float:right"></div>')
button_html = '';
- button_html += '<button id="change_error_settings" onclick="go_to_settings()">'+
+ button_html += '<button id="change_error_settings">'+
PMA_messages.strChangeReportSettings + '</button>'
- button_html += '<button onclick="createReportDialog()">'+
+ button_html += '<button id="show_error_report">'+
PMA_messages.strShowReportDetails + '</button>'
- button_html += '<button onclick="removeErrorNotification()">'+
+ button_html += '<button id="ignore_error">'+
PMA_messages.strIgnore + '</button>'
$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() {