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-08-03 02:46:18 +0400
committerMohamed Ashraf <mohamed.ashraf.213@gmail.com>2013-08-03 02:46:18 +0400
commitbabca95f9f32a1839a51fe050446a7ce783a95b0 (patch)
tree0d8b1b890e28327e9b56b6e1fc12d5e80ffc26c4 /js/error_report.js
parentdc63ed89c4f6148562f697696112e1b7b0d79685 (diff)
Removed custom get_token method and used the pma method
Diffstat (limited to 'js/error_report.js')
-rw-r--r--js/error_report.js18
1 files changed, 3 insertions, 15 deletions
diff --git a/js/error_report.js b/js/error_report.js
index c2b159ee35..318b2ca904 100644
--- a/js/error_report.js
+++ b/js/error_report.js
@@ -18,7 +18,7 @@ var ErrorReport = {
ErrorReport._last_exception = exception;
$.get("error_report.php",{
ajax_request: true,
- token: ErrorReport._get_token(),
+ token: PMA_commonParams.get('token'),
get_settings: true,
}, function(data) {
if(data.report_setting == "ask") {
@@ -175,19 +175,7 @@ var ErrorReport = {
* @return void
*/
_redirect_to_settings: function() {
- window.location.href = "prefs_forms.php?token=" + ErrorReport._get_token();
- },
- /**
- * Returns the current token to use in requests
- *
- * @return string
- */
- _get_token: function() {
- regex = /token=([\da-z]+)/;
- if($("#selflink a").length>0) {
- var token = regex.exec($("#selflink a")[0].href)[1];
- }
- return token;
+ window.location.href = "prefs_forms.php?token=" + PMA_commonParams.get('token');
},
/**
* Returns the report data to send to the server
@@ -197,7 +185,7 @@ var ErrorReport = {
* @return object
*/
_get_report_data: function(exception) {
- var token = ErrorReport._get_token();
+ var token = PMA_commonParams.get('token');
var report_data = {
"ajax_request": true,