phpBB

Code Changes

File: assets/javascript/core.js

  Unmodified   Added   Modified   Removed
Line 33Line 33

if (!$loadingIndicator.is(':visible')) {
$loadingIndicator.fadeIn(phpbb.alertTime);


if (!$loadingIndicator.is(':visible')) {
$loadingIndicator.fadeIn(phpbb.alertTime);

		// Wait fifteen seconds and display an error if nothing has been returned by then.

		// Wait 60 seconds and display an error if nothing has been returned by then.

		phpbb.clearLoadingTimeout();
phpbbAlertTimer = setTimeout(function() {

		phpbb.clearLoadingTimeout();
phpbbAlertTimer = setTimeout(function() {

 
			phpbb.showTimeoutMessage();
}, 60000);
}

return $loadingIndicator;
};

/**
* Show timeout message
*/
phpbb.showTimeoutMessage = function () {

			var $alert = $('#phpbb_alert');

if ($loadingIndicator.is(':visible')) {
phpbb.alert($alert.attr('data-l-err'), $alert.attr('data-l-timeout-processing-req'));
}

			var $alert = $('#phpbb_alert');

if ($loadingIndicator.is(':visible')) {
phpbb.alert($alert.attr('data-l-err'), $alert.attr('data-l-timeout-processing-req'));
}

		}, 15000);
}

return $loadingIndicator;

 
};

/**

};

/**

Line 303Line 310
					alert = phpbb.alert(res.MESSAGE_TITLE, res.MESSAGE_TEXT);
} else {
$dark.fadeOut(phpbb.alertTime);

					alert = phpbb.alert(res.MESSAGE_TITLE, res.MESSAGE_TEXT);
} else {
$dark.fadeOut(phpbb.alertTime);

 

if ($loadingIndicator) {
$loadingIndicator.fadeOut(phpbb.alertTime);
}

				}

if (typeof phpbb.ajaxCallbacks[callback] === 'function') {

				}

if (typeof phpbb.ajaxCallbacks[callback] === 'function') {

Line 1025Line 1036

function autoResize(item) {
function setHeight(height) {


function autoResize(item) {
function setHeight(height) {

			height += parseInt($item.css('height'), 10) - $item.height();

			height += parseInt($item.css('height'), 10) - $item.innerHeight();

			$item
.css({ height: height + 'px', resize: 'none' })
.addClass('auto-resized');

			$item
.css({ height: height + 'px', resize: 'none' })
.addClass('auto-resized');

Line 1044Line 1055
				configuration.maxHeight
),
$item = $(item),

				configuration.maxHeight
),
$item = $(item),

			height = parseInt($item.height(), 10),

			height = parseInt($item.innerHeight(), 10),

			scrollHeight = (item.scrollHeight) ? item.scrollHeight : 0;

if (height < 0) {

			scrollHeight = (item.scrollHeight) ? item.scrollHeight : 0;

if (height < 0) {

Line 1534Line 1545
		var $this = $(this),
$setting = $($this.data('toggle-setting'));
$setting.toggle($this.is(':selected'));

		var $this = $(this),
$setting = $($this.data('toggle-setting'));
$setting.toggle($this.is(':selected'));

 

// Disable any input elements that are not visible right now
if ($this.is(':selected')) {
$($this.data('toggle-setting') + ' input').prop('disabled', false);
} else {
$($this.data('toggle-setting') + ' input').prop('disabled', true);
}

	});
};


	});
};