Permalink
Browse files

Merge pull request #158 from Jellyfrog/feature-pollforjobs-use-ms

Make pollForJobs actually use ms argument
  • Loading branch information...
2 parents f03eaa2 + 6cf820b commit dd82cdc0fe46c4f13435ec1270db70015ae6c8e7 @drudge drudge committed Mar 19, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/http/public/javascripts/main.js
@@ -141,7 +141,7 @@ function show(state) {
o('#jobs .job').remove();
o('#menu li a').removeClass('active');
o('#menu li.' + state + ' a').addClass('active');
- pollForJobs(state, 2000);
+ pollForJobs(state, 1000);
return false;
}
}
@@ -159,7 +159,7 @@ function pollForJobs(state, ms) {
infiniteScroll();
if(!pollForJobs.timer) pollForJobs.timer = setTimeout(function(){
pollForJobs(state, ms);
- }, 1000);
+ }, ms);
});
};

0 comments on commit dd82cdc

Please sign in to comment.