Harden JS
Issue #7
resolved
We've tried to change the input[type=submit] inside the template to a button[type=submit]. Unfortunately, the JS is "hard coded" and is looking for the input[type=submit].
Maybe it would be a better idea to listen to a special class or something like that. Furthermore, the JS should use a variable instead of writting 7 times "input[type=submit]".
What do you think :)
P.S. Sorry for all the tickets. Please stop me if I'm giving yozu rocking guys a hard time.
Comments (4)
-
reporter -
reporter If you want I can provide a merge request. Just let me know.
-
reporter This is still open. We will provide a PR on github. This issue can be closed over here.
-
- changed status to resolved
- Log in to comment
Here is my proposal: http://pastebin.com/MWtcyn3Y
What did I do:
Because of the last point
plugin.tx_pxanewslettersubscription.settings.form.button.subscribe.class = btn btn-submit
is needed.
Hope that helps a little bit ;)