RSS Feed/News Minify JS breaking code?

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
23,636
Points
823

Reputation:

I've got an add-on that is utilizing JS to count characters in a text input form, so I can display the remaining characters.

Here is the full JS:

JavaScript:

Code:
((window, document) =>
{
    XF.MyAddonCharCount = XF.Element.newHandler({

textInput: null,
        maxLength: null,
        charCount: null,

init ()
        {
            const textInput = this.target
            const charCount = textInput.parentElement.querySelector('div.formRow-explain span')...

Read more

Continue reading...
 
Status
Not open for further replies.
Top