FucK BELAN and Russian POP shit!!!!!!!!!!!!!!!!!!!!!!!!!! TErasbetoni Finnland and Heavy Metal Foreve. Iron Maiden wanna Belan for Death!!!!!!!!!!!!!!!!!!!!
Fuck Russia and Belan!!!!!!!!!!!!!!!!!!!!!!!!!Commercial Pop shit!!!!!!!!!!!!!!!!!!!!!Finnland, Terasbetoni and Heavy Metal Forever!!!!!!!!!!!!!!!!!Iron Maiden wanna Belan for DEATH!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
');
var elem = $(elem);
elem.find('img').hide();
elem.append(waitImg);
var messageID = elem.attr('data-message-id');
var notSpam = elem.attr('data-not-spam') ? 0 : 1; // invert - 'data-not-spam' should contain CURRENT 'notspam' status!
$.post('/index/', {
a : 101,
scope_id : uCoz.spam.config.scopeID,
message_id : messageID,
not_spam : notSpam
}).then(function(response) {
waitImg.remove();
elem.find('img').show();
if (response.error) {
alert(response.error);
return;
}
if (response.status == 'admin_message_not_spam') {
elem.attr('data-not-spam', true).find('img').attr('src', '/.s/img/spamfilter/notspam-active.gif');
$('#del-as-spam-' + messageID).hide();
} else {
elem.removeAttr('data-not-spam').find('img').attr('src', '/.s/img/spamfilter/notspam.gif');
$('#del-as-spam-' + messageID).show();
}
//console.log(response);
});
return false;
};
uCoz.spam.report = function(scopeID, messageID, notSpam, callback, context) {
return $.post('/index/', {
a: 101,
scope_id : scopeID,
message_id : messageID,
not_spam : notSpam
}).then(function(response) {
if (callback) {
callback.call(context || window, response, context);
} else {
window.console && console.log && console.log('uCoz.spam.report: message #' + messageID, response);
}
});
};
uCoz.spam.reportDOM = function(event) {
if (event.preventDefault ) event.preventDefault();
var elem = $(this);
if (elem.hasClass('spam-report-working') ) return false;
var scopeID = uCoz.spam.config.scopeID;
var messageID = elem.attr('data-message-id');
var notSpam = elem.attr('data-not-spam');
var target = elem.parents('.report-spam-target').eq(0);
var height = target.outerHeight(true);
var margin = target.css('margin-left');
elem.html('').addClass('report-spam-working');
uCoz.spam.report(scopeID, messageID, notSpam, function(response, context) {
context.elem.text('').removeClass('report-spam-working');
window.console && console.log && console.log(response); // DEBUG
response.warning && window.console && console.warn && console.warn( 'uCoz.spam.report: warning: ' + response.warning, response );
if (response.warning && !response.status) {
// non-critical warnings, may occur if user reloads cached page:
if (response.warning == 'already_reported' ) response.status = 'message_spam';
if (response.warning == 'not_reported' ) response.status = 'message_not_spam';
}
if (response.error) {
context.target.html('
' + response.error + '
');
} else if (response.status) {
if (response.status == 'message_spam') {
context.elem.text(uCoz.spam.sign.notSpam).attr('data-not-spam', '1');
var toggle = $('#report-spam-toggle-wrapper-' + response.message_id);
if (toggle.length) {
toggle.find('.report-spam-toggle-text').text(uCoz.spam.sign.hidden);
toggle.find('.report-spam-toggle-button').text(uCoz.spam.sign.show);
} else {
toggle = $('