Node.js based forum software built for the modern web
add deprecation message
Barış Soner Uşaklı3fcbc138ac19
diff --git a/public/src/utils.js b/public/src/utils.jsindex 863b8f0c40..0c7f106fa5 100644--- a/public/src/utils.js+++ b/public/src/utils.js@@ -16,18 +16,21 @@ utils.getLanguage = function () {utils.makeNumbersHumanReadable = function (elements) {+ console.warn('[deprecated] utils.makeNumbersHumanReadable is deprecated! Use {humanReadableNumber(value)} helper directly in the template');elements.each(function () {const $this = $(this);const toFixed = $this.attr('data-toFixed') || 1;- $this.html(utils.makeNumberHumanReadable($(this).attr('title'), toFixed))+ $this.html(utils.makeNumberHumanReadable($this.attr('title'), toFixed)).removeClass('hidden');});};utils.addCommasToNumbers = function (elements) {+ console.warn('[deprecated] utils.addCommasToNumbers is deprecated! Use {formattedNumber(value)} helper directly in the template');elements.each(function (index, element) {- $(element)- .html(utils.addCommas($(element).html()))+ const $element = $(element);+ $element+ .html(utils.addCommas($element.html())).removeClass('hidden');});};