phpBB

Code Changes

File: adm/style/ajax.js

  Unmodified   Added   Modified   Removed
Line 1Line 1
/* global phpbb */

/* global phpbb, statsData */


(function($) { // Avoid conflicts with other libraries



(function($) { // Avoid conflicts with other libraries


Line 74Line 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 87Line 87
		$.ajax({
url: $this.attr('data-ajax-action').replace('&amp;', '&'),
type: 'POST',

		$.ajax({
url: $this.attr('data-ajax-action').replace('&amp;', '&'),
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