Fix "More Archives" button on system detail page
It now loads the rest of the archives, rather than failing and dumping
you back to the default page.
/* }}} */
/* Task Pagination */
- .on('click', '.paginate .load-more', function (event) { /* {{{ */
- console.log('loading more tasks...'); /* FIXME: need "loading" div... */
+ .on('click', '.paginate .load-more.tasks', function (event) { /* {{{ */
+ console.log('loading more tasks...');
event.preventDefault();
$(event.target).closest('.paginate').find('.loading').show();
}
});
}) /* }}} */
+ .on('click', '.load-more.archives', function (event) { /* {{{ */
+ event.preventDefault();
+ Scratch.track('archives:all', 'yes');
+ $('#main').template();
+ }) /* }}} */
/* Tasks View */
.on('click', 'a[href^="task:"]', function (event) { /* {{{ */
