Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-10 04:12:53 +01:00
Namespace char-counter helper
Dieser Commit ist enthalten in:
Ursprung
3fe42c4183
Commit
6bcc24eabc
2 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
|
@ -2,7 +2,7 @@ import { registerUnbound } from "discourse-common/lib/helpers";
|
||||||
import I18n from "I18n";
|
import I18n from "I18n";
|
||||||
import Handlebars from "handlebars";
|
import Handlebars from "handlebars";
|
||||||
|
|
||||||
export default registerUnbound("char-counter", function (body, maxLength) {
|
export default registerUnbound("wizard-char-counter", function (body, maxLength) {
|
||||||
let bodyLength = body ? body.length : 0;
|
let bodyLength = body ? body.length : 0;
|
||||||
let finalString;
|
let finalString;
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
|
|
||||||
{{#if field.char_counter}}
|
{{#if field.char_counter}}
|
||||||
{{#if textType}}
|
{{#if textType}}
|
||||||
{{char-counter field.value field.max_length}}
|
{{wizard-char-counter field.value field.max_length}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
|
|
Laden …
In neuem Issue referenzieren