On this day: September 25

READ ORIGINAL ARTICLE HERE

BRANSON MO NEWS: “);
alink.addClass(“disabled”);
if (isNaN(pageNum)) {
return;
}
var url = ajaxUrl + “autoflowId=” + autoflowId + “&pageNum=” + pageNum;
if (false) {
var tmpLimit = $(“#filter-mod-infinite-scrolling-media-headline-list-60302404”).find(“option:selected”).attr(“data-limit-number”);
url = url.replace(url.substring(url.indexOf(“tmpLimit”), url.indexOf(“&”, url.indexOf(“tmpLimit”))), “tmpLimit=” + tmpLimit);
}
$.ajax({
type : “GET”,
url : url
}).done(function(html) {
pageNum++;;
loadMore.attr(“pageNum”, pageNum);
var contentHTML = $(html).filter(“ul”);
var stories = $(‘#content-mod-infinite-scrolling-media-headline-list-60302404’).children(‘ul’).first();
var isViewList = stories.hasClass(“view-list”);
if (isViewList) {
if (“grid1” == “grid1”) {
contentHTML.addClass(“list media show-inline-ad small-block-grid-1 medium-block-grid-2 large-block-grid-3 view-list”);
} else if (“grid1” == “grid2”) {
contentHTML.addClass(“list media bricks view-list”);
}
} else {
if (“grid1” == “grid1”) {
contentHTML.addClass(“list media show-inline-ad small-block-grid-1 medium-block-grid-2 large-block-grid-3 view-grid”);
} else if (“grid1” == “grid2”) {
contentHTML.addClass(“list media bricks view-grid”);
}
}
$(‘#content-mod-infinite-scrolling-media-headline-list-60302404 .loader’).remove();
$(“#content-mod-infinite-scrolling-media-headline-list-60302404”).append(contentHTML);
alink.removeClass(“disabled”);
}).fail(function() {
$(“#content-mod-infinite-scrolling-media-headline-list-60302404”).append(“Oops. Something went wrong. Please wait a minute and refresh your browser.”)
});
});
$(“#filter-mod-infinite-scrolling-media-headline-list-60302404”).change(function(){
var loadMore = $(‘#load-more-mod-infinite-scrolling-media-headline-list-60302404’);
loadMore.attr(“pageNum”, 2);
var autoflowId = $(this).children(“option:selected”).val();
loadMore.attr(“autoflowId”, autoflowId);
var ajaxUrl = $(this).attr(“ajaxUrl”);
var tmpLimit = $(this).children(“option:selected”).attr(“data-limit-number”);
var url = ajaxUrl + autoflowId;
url = url.replace(/tmpLimitNum/, tmpLimit);
loadMore.hide();
loadMore.children(‘a’).removeClass(“disabled”);
var content = $(“#content-mod-infinite-scrolling-media-headline-list-60302404”);


CONTINUE. READ THE FULL ARTICLE…
Author:

Powered by WPeMatico

Comments

comments

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top