mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-11 18:21:04 +08:00
16 lines
385 B
JavaScript
16 lines
385 B
JavaScript
'use strict';
|
|
|
|
(function() {
|
|
function initActivitiesButton() {
|
|
$('.btn-more-activities')
|
|
.on('ajax:success', function(e, data) {
|
|
$(data.html).insertAfter($('#list-activities li').last());
|
|
if (data.more_url) {
|
|
$(this).attr('href', data.more_url);
|
|
} else {
|
|
$(this).remove();
|
|
}
|
|
});
|
|
}
|
|
initActivitiesButton();
|
|
}());
|