mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 16:05:49 +01:00
stricter selector for human readable numbers
This commit is contained in:
@@ -297,8 +297,8 @@ var socket,
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
app.makeNumbersHumanReadable = function(selector) {
|
app.makeNumbersHumanReadable = function(elements) {
|
||||||
$(selector).each(function() {
|
elements.each(function() {
|
||||||
$(this).html(utils.makeNumberHumanReadable($(this).attr('title')));
|
$(this).html(utils.makeNumberHumanReadable($(this).attr('title')));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -311,7 +311,7 @@ var socket,
|
|||||||
$('span.timeago').timeago();
|
$('span.timeago').timeago();
|
||||||
$('.post-content img').addClass('img-responsive');
|
$('.post-content img').addClass('img-responsive');
|
||||||
|
|
||||||
app.makeNumbersHumanReadable('.human-readable-number');
|
app.makeNumbersHumanReadable($('.human-readable-number');
|
||||||
|
|
||||||
app.createUserTooltips();
|
app.createUserTooltips();
|
||||||
|
|
||||||
|
|||||||
@@ -143,7 +143,7 @@ define(function () {
|
|||||||
container.append(html);
|
container.append(html);
|
||||||
|
|
||||||
$('#topics-container span.timeago').timeago();
|
$('#topics-container span.timeago').timeago();
|
||||||
app.makeNumbersHumanReadable('#topics-container .human-readable-number');
|
app.makeNumbersHumanReadable($(html).find('.human-readable-number'));
|
||||||
}
|
}
|
||||||
|
|
||||||
Category.loadMoreTopics = function(cid) {
|
Category.loadMoreTopics = function(cid) {
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ define(function() {
|
|||||||
|
|
||||||
container.append(html);
|
container.append(html);
|
||||||
$('span.timeago').timeago();
|
$('span.timeago').timeago();
|
||||||
app.makeNumbersHumanReadable('#topics-container .human-readable-number');
|
app.makeNumbersHumanReadable($(html).find('.human-readable-number'));
|
||||||
}
|
}
|
||||||
|
|
||||||
Recent.loadMoreTopics = function() {
|
Recent.loadMoreTopics = function() {
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ define(function() {
|
|||||||
|
|
||||||
container.append(html);
|
container.append(html);
|
||||||
$('span.timeago').timeago();
|
$('span.timeago').timeago();
|
||||||
app.makeNumbersHumanReadable('#topics-container .human-readable-number');
|
app.makeNumbersHumanReadable($(html).find('.human-readable-number'));
|
||||||
}
|
}
|
||||||
|
|
||||||
function loadMoreTopics() {
|
function loadMoreTopics() {
|
||||||
|
|||||||
Reference in New Issue
Block a user