This repository has been archived on 2024-10-25. You can view files and clone it, but cannot push or open issues or pull requests.
Sequenzia/app/assets/javascripts/init.cookie.js

23 lines
680 B
JavaScript
Raw Permalink Normal View History

2013-10-27 01:06:58 +02:00
jQuery(document).ready(function($) {
// Check if there's new dmail.
if ($.cookie('has_mail') == '1') {
$('#has-mail-notice').show();
};
// Check if there's new comment.
if ($.cookie('comments_updated') == '1') {
$('#comments-link').addClass('comments-update')
$('#comments-link').addClass('bolded');
};
// Show block/ban reason if the user is blocked/banned.
if ($.cookie('block_reason') && $.cookie('block_reason') != '') {
$('#block-reason').text($.cookie('block_reason')).show();
};
// Check if there's any pending post moderation queue.
if (parseInt($.cookie('mod_pending')) > 0) {
$('#moderate').addClass('mod-pending');
};
});