From a7da7ea2da4c6fde2eed6a4d26eddb68c6857af6 Mon Sep 17 00:00:00 2001 From: "Mingde (Matthew) Zeng" Date: Wed, 5 Feb 2020 09:35:39 -0500 Subject: [PATCH] Click submit buttons too --- core/js/goto_marker.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/js/goto_marker.js b/core/js/goto_marker.js index 6860446..0355b66 100644 --- a/core/js/goto_marker.js +++ b/core/js/goto_marker.js @@ -27,9 +27,8 @@ link.focus(); }else if(link.nodeName.toLowerCase() === 'input' || link.nodeName.toLowerCase() === 'textarea') { - if(link.getAttribute('type') === 'submit'){ - link.submit(); - } else if(link.getAttribute('type') === 'checkbox'){ + if((link.getAttribute('type') === 'submit') || + (link.getAttribute('type') === 'checkbox')){ link.click(); } else { link.focus(); // focus