summaryrefslogtreecommitdiff
path: root/app/assets
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets')
-rw-r--r--app/assets/javascripts/events.coffee8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/assets/javascripts/events.coffee b/app/assets/javascripts/events.coffee
index 24f83d1..e72d214 100644
--- a/app/assets/javascripts/events.coffee
+++ b/app/assets/javascripts/events.coffee
@@ -1,3 +1,11 @@
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/
+
+class window.EventsFeed
+ start: (pollingInterval, refreshLink)->
+ window.setTimeout (->
+ console.log('refreshing...')
+ $("#{refreshLink}")[0].click()
+ return
+ ), pollingInterval