phpBB

Code Changes

File: styles/prosilver/template/ajax.js

  Unmodified   Added   Modified   Removed
Line 132Line 132

// Update the unread count.
$('strong', '#notification_list_button').html(unreadCount);


// Update the unread count.
$('strong', '#notification_list_button').html(unreadCount);

	// Remove the Mark all read link if there are no unread notifications.

	// Remove the Mark all read link and hide notification count if there are no unread notifications.

	if (!unreadCount) {
$('#mark_all_notifications').remove();

	if (!unreadCount) {
$('#mark_all_notifications').remove();

 
		$('#notification_list_button > strong').addClass('hidden');

	}

// Update page title

	}

// Update page title

Line 242Line 243
			var mostVoted = (res.vote_counts[optionId] === mostVotes);
var percent = (!res.total_votes) ? 0 : Math.round((res.vote_counts[optionId] / res.total_votes) * 100);
var percentRel = (mostVotes === 0) ? 0 : Math.round((res.vote_counts[optionId] / mostVotes) * 100);

			var mostVoted = (res.vote_counts[optionId] === mostVotes);
var percent = (!res.total_votes) ? 0 : Math.round((res.vote_counts[optionId] / res.total_votes) * 100);
var percentRel = (mostVotes === 0) ? 0 : Math.round((res.vote_counts[optionId] / mostVotes) * 100);

 
			var altText;





 
			altText = $this.attr('data-alt-text');
if (voted) {
$this.attr('title', $.trim(altText));
} else {
$this.attr('title', '');
};

			$this.toggleClass('voted', voted);
$this.toggleClass('most-votes', mostVoted);


			$this.toggleClass('voted', voted);
$this.toggleClass('most-votes', mostVoted);