fix: typo, timeago on blocks page

This commit is contained in:
Barış Soner Uşaklı
2022-10-02 20:28:09 -04:00
parent adc248960b
commit 5f12d167ab
2 changed files with 2 additions and 1 deletions

View File

@@ -53,6 +53,7 @@ define('forum/account/blocks', [
$.get(config.relative_path + '/api/' + ajaxify.currentPage)
.done(function (payload) {
app.parseAndTranslate('account/blocks', 'users', payload, function (html) {
html.find('.timeago').timeago();
$('#users-container').html(html);
$('#users-container').siblings('div.alert')[html.length ? 'hide' : 'show']();
});

View File

@@ -223,7 +223,7 @@ define('search', ['translator', 'storage', 'hooks', 'alerts'], function (transla
Search.showAndFocusInput = function () {
$('[component="search/fields"]').removeClass('hidden');
$('[component="search/button]').addClass('hidden');
$('[component="search/button"]').addClass('hidden');
$('[component="search/fields"] input[name="query"]').trigger('focus');
};