Advertisement
Guest User

Untitled

a guest
Apr 24th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. <script type="text/javascript">
  2. // SalsaStaff 176248: Script to allow pages that do not submit inInternet Explorer
  3. // to work correctly. It is **important** not to use this script on a page where
  4. // the submit button works! The world will end and you'll know that it's *your* fault.
  5. // :-)
  6. (function() {
  7. if (window.navigator.userAgent.indexOf('Windows NT' != -1)) {
  8. var form = document.querySelector('.salsa form');
  9. if (form === null) return;
  10. var submit = form.querySelector('input[type=submit]');
  11. if (submit === null) return;
  12. submit.addEventListener('click', function(event) {
  13. form.submit();
  14. })
  15. }
  16. })();
  17. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement