diff --git a/public/src/forum/category.js b/public/src/forum/category.js index 56ea94b6e4..e3a8688472 100644 --- a/public/src/forum/category.js +++ b/public/src/forum/category.js @@ -150,21 +150,21 @@ define(['composer'], function(composer) { } var recentReplies = $('#category_recent_replies'); - var reply; + var replies = ''; for (var i = 0, numPosts = posts.length; i < numPosts; ++i) { - reply = $('
  • ' + + replies += '
  • ' + '' + '' + ''+ posts[i].username + '' + '

    ' + posts[i].content + '

    ' + '
    ' + '' + - '
  • '); - - recentReplies.append(reply); + ''; } + recentReplies.html(replies); + $('#category_recent_replies span.timeago').timeago(); app.createUserTooltips(); }; diff --git a/public/src/modules/composer.js b/public/src/modules/composer.js index 98f9fbf0a5..419fb091d7 100644 --- a/public/src/modules/composer.js +++ b/public/src/modules/composer.js @@ -192,7 +192,7 @@ define(['taskbar'], function(taskbar) { }); - postContainer.on('click', '.formatting-bar button', function() { + postContainer.on('click', '.action-bar button', function() { var action = $(this).attr('data-action'); switch(action) { diff --git a/public/templates/composer.tpl b/public/templates/composer.tpl index 123f0d85b7..f4649050bd 100644 --- a/public/templates/composer.tpl +++ b/public/templates/composer.tpl @@ -17,15 +17,15 @@ -
    - - -