Unbreak frontend polling

This commit is contained in:
kimth
2012-08-13 10:46:01 -04:00
parent 32924d8bfe
commit fe954ca1c7

View File

@@ -40,8 +40,9 @@ class @Problem
poll: =>
$.postWithPrefix "#{@url}/problem_get", (response) =>
@el.html(response.html)
@executeProblemScripts()
@bind()
@executeProblemScripts () =>
@setupInputTypes()
@bind()
@queued_items = @$(".xqueue")
if @queued_items.length == 0