[ad_1]

“);b.addClass(“disabled”);if(isNaN(j)){return}var f=h+”autoflowId=”+l+”&pageNum=”+j;if(false){var i=c(“#filter-mod-infinite-scrolling-media-headline-list-1821112088”).find(“option:selected”).attr(“data-limit-number”);f=f.replace(f.substring(f.indexOf(“tmpLimit”),f.indexOf(“&”,f.indexOf(“tmpLimit”))),”tmpLimit=”+i)}c.ajax({type:”GET”,url:f}).done(function(n){j++;d.attr(“pageNum”,j);var o=c(n).filter(“ul”);var m=g.children(“ul”).first();var e=m.hasClass(“view-list”);if(e){if(“grid1″==”grid1”){o.addClass(“list media show-inline-ad small-block-grid-1 medium-block-grid-2 large-block-grid-3 view-list”)}else{if(“grid1″==”grid2”){o.addClass(“list media bricks view-list”)}}}else{if(“grid1″==”grid1”){o.addClass(“list media show-inline-ad small-block-grid-1 medium-block-grid-2 large-block-grid-3 view-grid”)}else{if(“grid1″==”grid2”){o.addClass(“list media bricks view-grid”)}}}g.find(“.loader”).remove();g.append(o);var p;try{p=EP.Util.ImgLoadGroup.mainInstance}catch(q){}if(p){p.refresh(g)}b.removeClass(“disabled”)}).fail(function(){g.append(“

Oops. Something went wrong. Please wait a minute and refresh your browser.

“)})});c(“#filter-mod-infinite-scrolling-media-headline-list-1821112088”).change(function(){var i=c(“#load-more-mod-infinite-scrolling-media-headline-list-1821112088”);i.attr(“pageNum”,2);var j=c(this).children(“option:selected”).val();i.attr(“autoflowId”,j);var g=c(this).attr(“ajaxUrl”);var h=c(this).children(“option:selected”).attr(“data-limit-number”);var e=g+j;e=e.replace(/tmpLimitNum/,h);i.hide();i.children(“a”).removeClass(“disabled”);var f=c(“#content-mod-infinite-scrolling-media-headline-list-1821112088”);f.empty();f.append(“

Loading

“);c.ajax({type:”GET”,url:e}).done(function(l){var m=c(l).filter(“ul”);var k=f.children(“ul”).first().hasClass(“view-list”);f.empty();if(k){if(“grid1″==”grid1”){m.addClass(“list media show-inline-ad small-block-grid-1 medium-block-grid-2 large-block-grid-3 view-list”)}else{if(“grid1″==”grid2”){m.addClass(“list media bricks view-list”)}}}else{if(“grid1″==”grid1”){m.addClass(“list media show-inline-ad small-block-grid-1 medium-block-grid-2 large-block-grid-3 view-grid”)}else{if(“grid1″==”grid2”){m.addClass(“list media bricks view-grid”)}}}f.append(m);i.show();var n;try{n=EP.Util.ImgLoadGroup.mainInstance}catch(o){}if(n){n.refresh(f)}}).fail(function(){f.append(“

Oops. Something went wrong. Please wait a minute and refresh your browser.

“)})})})(jQuery,AUI());

[ad_2]

Source link