phpBB

Code Changes

File: assets/javascript/core.js

  Unmodified   Added   Modified   Removed
Line 27Line 27
 */
phpbb.loadingIndicator = function() {
if (!$loadingIndicator) {

 */
phpbb.loadingIndicator = function() {
if (!$loadingIndicator) {

		$loadingIndicator = $('<div />', { id: 'loading_indicator' });




		$loadingIndicator = $('<div />', { 
id: 'loading_indicator',
class: 'loading_indicator',
});

		$loadingIndicator.appendTo('#page-footer');
}


		$loadingIndicator.appendTo('#page-footer');
}


Line 957Line 960

$anchor.each(function() {
var $this = $(this);


$anchor.each(function() {
var $this = $(this);


// Toggle link text
toggleText = $this.attr('data-toggle-text');
$this.attr('data-toggle-text', $this.text());
$this.attr('title', $.trim(toggleText));
$this.text(toggleText);

 

// Toggle link url
toggleUrl = $this.attr('data-toggle-url');


// Toggle link url
toggleUrl = $this.attr('data-toggle-url');

Line 971Line 968

// Toggle class of link parent
toggleClass = $this.attr('data-toggle-class');


// Toggle class of link parent
toggleClass = $this.attr('data-toggle-class');

		$this.attr('data-toggle-class', $this.parent().attr('class'));
$this.parent().attr('class', toggleClass);







		$this.attr('data-toggle-class', $this.children().attr('class'));
$this.children('.icon').attr('class', toggleClass);

// Toggle link text
toggleText = $this.attr('data-toggle-text');
$this.attr('data-toggle-text', $this.children('span').text());
$this.attr('title', $.trim(toggleText));
$this.children('span').text(toggleText);

	});
});


	});
});