You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
291B

  1. $ ->
  2. submit = ->
  3. host = $('#check_host').val()
  4. type = $('#check_type').val()
  5. window.location.href = "<%= Rails.configuration.relative_url_root %>/#{type}/#{host}"
  6. $('#check_host').keypress (e) ->
  7. submit() if e.which == 13
  8. return
  9. $('#check_submit').click ->
  10. submit()
  11. return