tags generated with nothing in them and it requires a PHD change, meanwhile this fixes it.
$refsect1.find('p').each(function() {
var $this = $(this), html = $this.html();
if(html !== null && html.replace(/\s| /g, '').length == 0) {
$this.remove();
}
});
/*{{{ Scroll to top */
(function() {
var settings = {
text: 'To Top',
min: 200,
inDelay:600,
outDelay:400,
containerID: 'toTop',
containerHoverID: 'toTopHover',
scrollSpeed: 400,
easingType: 'linear'
};
var containerIDhash = '#' + settings.containerID;
var containerHoverIDHash = '#'+settings.containerHoverID;
$('body').append('
');
$(containerIDhash).hide().click(function(){
$('html, body').animate({scrollTop:0}, settings.scrollSpeed, settings.easingType);
$('#'+settings.containerHoverID, this).stop().animate({'opacity': 0 }, settings.inDelay, settings.easingType);
return false;
})
.prepend('')
.hover(function() {
$(containerHoverIDHash, this).stop().animate({
'opacity': 1
}, 600, 'linear');
}, function() {
$(containerHoverIDHash, this).stop().animate({
'opacity': 0
}, 700, 'linear');
});
$(window).scroll(function() {
var sd = $(window).scrollTop();
if (typeof document.body.style.maxHeight === "undefined") {
$(containerIDhash).css({
'position': 'absolute',
'top': $(window).scrollTop() + $(window).height() - 50
});
}
if ( sd > settings.min ) {
$(containerIDhash).fadeIn(settings.inDelay);
} else {
$(containerIDhash).fadeOut(settings.outDelay);
}
});
})();
/*}}}*/
/*{{{User Notes*/
$("#usernotes a.usernotes-voteu, #usernotes a.usernotes-voted").each(
function () {
$(this).click(
function (event) {
event.preventDefault();
var url = $(this).attr("href");
var id = url.match(/\?id=(\d+)/)[1];
var request = $.ajax({
type: "POST",
url: url,
dataType: "json",
headers: {"X-Json": "On" },
beforeSend: function() {
$("#Vu"+id).hide();
$("#Vd"+id).hide();
$("#V"+id).html("
");
}
});
request.done(function(data) {
if(data.success != null && data.success == true) {
$("#V"+id).html("