Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Карточки] Uncaught TypeError: val.test is not a function #16

Open
b2z opened this issue Feb 25, 2020 · 3 comments
Open

[Карточки] Uncaught TypeError: val.test is not a function #16

b2z opened this issue Feb 25, 2020 · 3 comments
Labels
bug Something isn't working

Comments

@b2z
Copy link
Member

b2z commented Feb 25, 2020

Использую "Способ вывода поля" - Карточки. Выбираю файл, жму "Вставить файлы". Получаю пустую карточку и ошибку в консоли Uncaught TypeError: val.test is not a function.

subform-repetable-cards.js?1582561460:43 Uncaught TypeError: val.test is not a function at generateTile (subform-repetable-cards.js?1582561460:43) at subform-repetable-cards.js?1582561460:15

Проблема только на фронте. В админке всё красиво. Выяснил, что проблема только если я это не как Super User делаю.

@b2z b2z added the bug Something isn't working label Feb 25, 2020
@b2z
Copy link
Member Author

b2z commented Feb 26, 2020

Отладка JS показала, что под Super User вызывается функция test() от mootools:

{test:function(b,a){return("regexp"==typeOf(b)?b:RegExp(""+b,a)).test(this)

Под простым юзером mootools не грузится :(

@dmitriitux
Copy link
Member

понял

@b2z
Copy link
Member Author

b2z commented Feb 26, 2020

По хорошему там всё надо под чистый JS переписать :)
Я вот только не пойму, почему этот mootools так избирательно грузится :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants