phpBB

Code Changes

File: assets/javascript/core.js

  Unmodified   Added   Modified   Removed
Line 19Line 19
var phpbbAlertTimer = null;

phpbb.isTouch = (window && typeof window.ontouchstart !== 'undefined');

var phpbbAlertTimer = null;

phpbb.isTouch = (window && typeof window.ontouchstart !== 'undefined');

 

// Add ajax pre-filter to prevent cross-domain script execution
$.ajaxPrefilter(function(s) {
if (s.crossDomain) {
s.contents.script = false;
}
});


/**
* Display a loading screen


/**
* Display a loading screen

Line 846Line 853
	var minutes = offset % 60;
var hours = (offset - minutes) / 60;


	var minutes = offset % 60;
var hours = (offset - minutes) / 60;


	if (hours < 10) {




	if (hours === 0) {
hours = '00';
sign = '+';
} else if (hours < 10) {

		hours = '0' + hours.toString();
} else {
hours = hours.toString();

		hours = '0' + hours.toString();
} else {
hours = hours.toString();

Line 935Line 945
	$anchor.each(function() {
var $this = $(this);
altText = $this.attr('data-alt-text');

	$anchor.each(function() {
var $this = $(this);
altText = $this.attr('data-alt-text');

		$this.attr('data-alt-text', $this.text());
$this.attr('title', $.trim(altText));
$this.text(altText);

		$this.attr('data-alt-text', $.trim($this.text()));
$this.attr('title', altText);
$this.children('span').text(altText);

	});
});


	});
});


Line 1331Line 1341
			$this.css({
marginLeft: 0,
left: 0,

			$this.css({
marginLeft: 0,
left: 0,

 
				marginRight: 0,

				maxWidth: (windowWidth - 4) + 'px'
});


				maxWidth: (windowWidth - 4) + 'px'
});


Line 1642Line 1653
	});
};


	});
};


$(window).load(phpbb.lazyLoadAvatars);

$(window).on('load', phpbb.lazyLoadAvatars);


/**
* Apply code editor to all textarea elements with data-bbcode attribute


/**
* Apply code editor to all textarea elements with data-bbcode attribute

Line 1654Line 1665

phpbb.registerPageDropdowns();



phpbb.registerPageDropdowns();


	$('#color_palette_placeholder').each(function() {

	$('[data-orientation]').each(function() {

		phpbb.registerPalette($(this));
});


		phpbb.registerPalette($(this));
});