|
|
|
@ -56,7 +56,7 @@ define('topicList', [
|
|
|
|
|
|
|
|
|
|
handleBack.init(function (after, handleBackCallback) {
|
|
|
|
|
loadTopicsCallback(after, 1, function (data, loadCallback) {
|
|
|
|
|
TopicList.onTopicsLoaded(templateName, data.topics, ajaxify.data.showSelect, 1, function () {
|
|
|
|
|
onTopicsLoaded(templateName, data.topics, ajaxify.data.showSelect, 1, function () {
|
|
|
|
|
handleBackCallback();
|
|
|
|
|
loadCallback();
|
|
|
|
|
});
|
|
|
|
@ -192,7 +192,7 @@ define('topicList', [
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
loadTopicsCallback(after, direction, function (data, done) {
|
|
|
|
|
TopicList.onTopicsLoaded(templateName, data.topics, ajaxify.data.showSelect, direction, done);
|
|
|
|
|
onTopicsLoaded(templateName, data.topics, ajaxify.data.showSelect, direction, done);
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
@ -219,7 +219,7 @@ define('topicList', [
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
TopicList.onTopicsLoaded = function (templateName, topics, showSelect, direction, callback) {
|
|
|
|
|
function onTopicsLoaded(templateName, topics, showSelect, direction, callback) {
|
|
|
|
|
if (!topics || !topics.length) {
|
|
|
|
|
$('#load-more-btn').hide();
|
|
|
|
|
return callback();
|
|
|
|
|