We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2cae075 + 80c5380 commit adb02ddCopy full SHA for adb02dd
app/controllers/application_controller/wait_for_task.rb
@@ -25,7 +25,7 @@ def wait_for_task
25
26
def browser_refresh_task(task_id, async_interval, should_flash: false)
27
async_interval = 1000 if async_interval.to_i < 1000 # if it is not an integer, assign to 1 second
28
- async_interval += 250 if async_interval < 5000 # Slowly move up to 5 second retries
+ async_interval += 250 if async_interval.to_i < 5000 # Slowly move up to 5 second retries
29
render :update do |page|
30
page << javascript_prologue
31
ajax_call = remote_function(:url => {:action => 'wait_for_task', :task_id => task_id, :async_interval => async_interval})
0 commit comments