mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-26 17:29:53 +01:00
remove unnecessary tooltip calls
This commit is contained in:
@@ -45,7 +45,6 @@ define('forum/account/posts', ['forum/account/header', 'forum/infinitescroll', '
|
||||
$('[component="posts"]').append(html);
|
||||
html.find('img:not(.not-responsive)').addClass('img-responsive');
|
||||
html.find('.timeago').timeago();
|
||||
app.createUserTooltips(html);
|
||||
utils.makeNumbersHumanReadable(html.find('.human-readable-number'));
|
||||
hooks.fire('action:posts.loaded', { posts: posts });
|
||||
callback();
|
||||
|
||||
@@ -46,7 +46,6 @@ define('forum/account/topics', [
|
||||
app.parseAndTranslate(template, 'topics', { topics: topics }, function (html) {
|
||||
$('[component="category"]').append(html);
|
||||
html.find('.timeago').timeago();
|
||||
app.createUserTooltips(html);
|
||||
utils.makeNumbersHumanReadable(html.find('.human-readable-number'));
|
||||
hooks.fire('action:topics.loaded', { topics: topics });
|
||||
callback();
|
||||
|
||||
@@ -56,7 +56,6 @@ define('forum/categories', ['components', 'categorySelector', 'hooks'], function
|
||||
|
||||
html.fadeIn();
|
||||
|
||||
app.createUserTooltips(html);
|
||||
html.find('.timeago').timeago();
|
||||
|
||||
if (category.find('[component="category/posts"]').length > parseInt(numRecentReplies, 10)) {
|
||||
|
||||
@@ -105,7 +105,6 @@ define('forum/category', [
|
||||
html.find('.timeago').timeago();
|
||||
$('[component="category/subcategory/container"]').append(html);
|
||||
utils.makeNumbersHumanReadable(html.find('.human-readable-number'));
|
||||
app.createUserTooltips(html);
|
||||
ajaxify.data.nextSubCategoryStart += ajaxify.data.subCategoriesPerPage;
|
||||
ajaxify.data.subCategoriesLeft -= data.length;
|
||||
btn.toggleClass('hidden', ajaxify.data.subCategoriesLeft <= 0)
|
||||
|
||||
@@ -401,9 +401,6 @@ define('forum/topic/posts', [
|
||||
|
||||
Posts.onNewPostsAddedToDom = function (posts) {
|
||||
Posts.onTopicPageLoad(posts);
|
||||
|
||||
app.createUserTooltips(posts);
|
||||
|
||||
utils.addCommasToNumbers(posts.find('.formatted-number'));
|
||||
utils.makeNumbersHumanReadable(posts.find('.human-readable-number'));
|
||||
posts.find('.timeago').timeago();
|
||||
|
||||
@@ -93,7 +93,6 @@ define('chat', [
|
||||
app.parseAndTranslate('partials/chats/dropdown', { rooms: rooms }, function (html) {
|
||||
chatsListEl.find('*').not('.navigation-link').remove();
|
||||
chatsListEl.prepend(html);
|
||||
app.createUserTooltips(chatsListEl, 'right');
|
||||
chatsListEl.off('click').on('click', '[data-roomid]', function (ev) {
|
||||
if ($(ev.target).parents('.user-link').length) {
|
||||
return;
|
||||
|
||||
@@ -268,7 +268,6 @@ define('topicList', [
|
||||
}
|
||||
|
||||
html.find('.timeago').timeago();
|
||||
app.createUserTooltips(html);
|
||||
utils.makeNumbersHumanReadable(html.find('.human-readable-number'));
|
||||
hooks.fire('action:topics.loaded', { topics: topics, template: templateName });
|
||||
callback();
|
||||
|
||||
Reference in New Issue
Block a user