Line 1 | Line 1 |
---|
/* global phpbb */
| /* global phpbb, statsData */
|
(function($) { // Avoid conflicts with other libraries
| (function($) { // Avoid conflicts with other libraries
|
Line 74 | Line 74 |
---|
var $sendStatisticsSuccess = $('<input />', { type: 'hidden', name: 'send_statistics_response',
|
var $sendStatisticsSuccess = $('<input />', { type: 'hidden', name: 'send_statistics_response',
|
value: res
| value: JSON.stringify(res)
|
}); $sendStatisticsSuccess.appendTo('p.submit-buttons');
| }); $sendStatisticsSuccess.appendTo('p.submit-buttons');
|
Line 87 | Line 87 |
---|
$.ajax({ url: $this.attr('data-ajax-action').replace('&', '&'), type: 'POST',
|
$.ajax({ url: $this.attr('data-ajax-action').replace('&', '&'), type: 'POST',
|
data: 'systemdata=' + encodeURIComponent($this.find('input[name=systemdata]').val()),
| data: statsData,
|
success: returnHandler, error: errorHandler, cache: false
| success: returnHandler, error: errorHandler, cache: false
|