ja.son-williams.ca/www/plugins/jasonwilliams/feed/assets/javascript/lazyloadshortfeed.js

11 lines
274 B
JavaScript
Raw Normal View History

$(() => {
var obj = {};
if (typeof renderPartial !== 'string') obj = { '@feed': '#feedarea' }
else obj[renderPartial] = '#feedarea'
$.request('LazyLoadShortFeed::onUpdateRequested', {
update: obj,
complete: () => { $(window).trigger('feedLoaded') }
})
})