mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-21 06:52:59 +01:00
fix: typo, timeago on blocks page
This commit is contained in:
@@ -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']();
|
||||
});
|
||||
|
||||
@@ -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');
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user