removed templates config and mapping 🐑

This commit is contained in:
barisusakli
2015-03-06 19:02:18 -05:00
parent 5821a0758f
commit 2a8437f08f
12 changed files with 255 additions and 451 deletions

View File

@@ -6,7 +6,7 @@ define('forum/unread', ['forum/recent', 'topicSelect', 'forum/infinitescroll'],
var Unread = {};
$(window).on('action:ajaxify.start', function(ev, data) {
if (data.tpl_url !== 'unread') {
if (ajaxify.currentPage !== data.url) {
recent.removeListeners();
}
});
@@ -130,7 +130,7 @@ define('forum/unread', ['forum/recent', 'topicSelect', 'forum/infinitescroll'],
function createCategoryLink(category) {
var link = $('<a role="menuitem" href="#"></a>');
if (category.icon) {
link.append('<i class="fa fa-fw ' + category.icon + '"></i> ' + category.name);
} else {