Market Watcher




Radio

David Shapiro – Deputy chairman, Sasfin Wealth

Get access to Moneyweb’s financial intelligence and support quality journalism for only

R63/month or R630/year.

AUTHOR
PROFILE

‘);
var statusdiv = $(‘#comment-status’);

commentform.submit(function () {
var formdata = commentform.serialize();
statusdiv.html(‘

‘);
var formurl = commentform.attr(‘action’);
$.ajax({
type: ‘post’,
url: formurl,
data: formdata,
error: function (XMLHttpRequest, textStatus, errorThrown) {
statusdiv.html(‘

You might have left one of the fields blank, or be posting too quickly

‘);
},
success: function (data, textStatus) {
if (data == “success” || textStatus == “success”) {
statusdiv.html(‘

‘);
commentform.find(‘textarea[name=comment]’).val(”);
} else {
statusdiv.html(‘

Please wait a while before posting your next comment

‘);
commentform.find(‘textarea[name=comment]’).val(”);
}
$(document).on(“click”, “.close-comment-notice”, function () {
$(this).parent(“.ajax-success”).fadeOut();
});
}
});
return false;
});

$(“article.comment”).slice(0, 2).show();
$(“#loadMore”).on(‘click’, function (e) {
e.preventDefault();
$(“article.comment:hidden”).slice(0).slideDown();
if ($(“article.comment:hidden”).length == 0) {
$(“#load”).fadeOut(‘slow’);
}
$(‘#loadMore’).addClass(“loaded”);
$(‘#loadLess’).addClass(“loaded”);
$(‘html,body’).animate({
scrollTop: $(this).offset().top
}, 1500);
});

$(“a”).on(‘click’, function (event) {

if (this.hash !== “”) {
event.preventDefault();
var hash = this.hash;
$(‘html, body’).animate({
scrollTop: $(hash).offset().top
}, 800, function () {
window.location.hash = hash;
});
}
});

});

Enter your Email Address

Related posts

Leave a Comment