remove unnecessary tooltip calls

This commit is contained in:
Barış Soner Uşaklı
2022-09-11 21:59:47 -04:00
parent a94cc877c4
commit 91d1cbb5dc
7 changed files with 0 additions and 9 deletions

View File

@@ -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();

View File

@@ -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();

View File

@@ -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)) {

View File

@@ -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)

View File

@@ -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();

View File

@@ -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;

View File

@@ -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();