Re-order input logic

master
Matthew Mingde Zeng 6 years ago
parent e978c2356c
commit d316344099
  1. 8
      core/js/goto_marker.js

@ -24,13 +24,13 @@
window.open(link.href, '_self'); window.open(link.href, '_self');
} }
}else if(link.nodeName.toLowerCase() === 'input'){ }else if(link.nodeName.toLowerCase() === 'input'){
if(link.getAttribute('type') === 'text'){ if(link.getAttribute('type') === 'submit'){
link.focus();
link.select();
} else if(link.getAttribute('type') === 'submit'){
link.submit(); link.submit();
} else if(link.getAttribute('type') === 'checkbox'){ } else if(link.getAttribute('type') === 'checkbox'){
link.click(); link.click();
} else {
link.focus();
link.select();
} }
} }
} }

Loading…
Cancel
Save