ve_ns.js.coffee 463 B

12345678910111213141516171819
  1. # Place all the behaviors and hooks related to the matching controller here.
  2. # All this logic will automatically be available in application.js.
  3. # You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
  4. loadVENs = () ->
  5. try
  6. $("#content").load(window.location.pathname + ".js")
  7. setTimeout ->
  8. loadVENs()
  9. , 5000
  10. catch err
  11. alert "reload error: " + err
  12. setTimeout ->
  13. loadVENs()
  14. , 5000