‘);
$(‘.commenti > ul’).append(el.find(‘ul’).first().html());
if( el.find(‘.showMore’).length == 0){
$(‘.commenti .showMore’).remove();
showMore=false;
}
$(‘html,body’).animate({ scrollTop: topLast }, 1000);
$(‘#fa266b03-dc65-448e-961c-dd918f5080e5 .loading’).hide();
}
});
}

$(‘.commenti .showMore’).click(showMoreComments);

});

‘);
$form.append(‘

‘);
$form.hide();
$(this).closest(‘div’).first().after( $form );
$form.wrap(‘

‘);
}
$form.toggle();
$form_report.hide();
});

$(document).on(‘click’,’.commenti .vc_report’, function(){
$(‘.commenti .vc_report_comment_box form’).not( $(this).closest(‘li’).find(‘form’) ).hide();
var $form=$(this).closest(‘li’).find(‘> .vc_report_comment_box form’);
var $form_comment=$(this).closest(‘li’).find(‘> .posta_commenti form’);
if ( $form.length==0 ){
$form = $(‘

‘).attr(‘method’, ‘post’).attr(‘action’, ‘/actions/report.jsp’);
$form.append(‘‘);
$form.append(‘‘);
$form.append(‘

‘);
$form.append(‘

‘);
$form.hide();
$(this).closest(‘div’).first().after( $form );
$form.wrap(‘

‘);
$form.submit(function(){
var text=$(this).find(‘[name=text]’).val();
if(text==”){
$.confirm({
‘title’ : ‘Error!’,
‘message’ : ‘Insert a valid message’,
‘buttons’ : {‘Ok’:{‘class’:’blue’}}
});
}else{
$.ajax({
url: $(this).attr(‘action’),
data: $(this).serialize(),
dataType: ‘json’,
success: function(response){
if(response.askForLogin){
openPopupLogin();
}else{
$.confirm({
‘title’ : ”,
‘message’ : ‘Your message has been submitted’,
‘buttons’ : {‘Ok’:{‘class’:’blue’, ‘action’: function(){ location.href=parent.location.href; } }}
});
}
}
});
}
return false;
});
}
$form.toggle();
$form_comment.hide();
});
$(document).on(‘focus’,’.commenti .post_commenti_form textarea[name=”testo”]’, function(){
if( $(this).val()==’Leave your comment’){
$(this).val(”);
}
});
$(document).on(‘blur’,’.commenti .post_commenti_form textarea[name=”testo”]’, function(){
if($(this).val().replace(/ /g,”).length==0){
$(this).val(‘Leave your comment’);
}
});
$(document).on(‘change keyup’,’.commenti .post_commenti_form textarea[name=”testo”]’, function(){
if($(this).val().length>max_characters){
$(this).val($(this).val().substring(0,max_characters));
}
$(this).closest(‘form’).find(‘.commentodispo’).html(max_characters-$(this).val().length);
});

‘);

Taste Of Africa Event

Opinion: Town crying out for new direction and leadership

Maidenhead town centre


Man in critical condition after 'serious assault' in Kidwells Park

A police scene watch has been set up in Kidwells Park this morning after a 17-year-old boy was ‘seriously assaulted’.

Police 'execute firearms warrant' in Cox Green

There was a heavy police presence in Cox Green this morning.

Police are conducting searches in the Cox Green area after executing a firearms warrant this morning.




About The Author

Related Posts