django-modeltranslation icon indicating copy to clipboard operation
django-modeltranslation copied to clipboard

Fire event when JS is initiated

Open adi- opened this issue 1 year ago • 1 comments

When all translation inputs are initiated it would be nice to fire an event. I am manipulating form inputs (setting custom height), but I am having a race condition. My script is run when DOM is loaded, same with django-modeltranslation JS scripts. My manipulation script sometimes can't see those form inputs, because of not finished django-translation scripts.

Any chance to do so?

adi- avatar Dec 08 '23 18:12 adi-

Sure. Please take a look at JS code and make a PR with this event you need.

I can do code review and merge it.

last-partizan avatar Dec 10 '23 16:12 last-partizan