Skip to content

Commit

Permalink
Merge pull request #158 from Jellyfrog/feature-pollforjobs-use-ms
Browse files Browse the repository at this point in the history
Make pollForJobs actually use ms argument
  • Loading branch information
drudge committed Mar 19, 2013
2 parents f03eaa2 + 6cf820b commit dd82cdc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/http/public/javascripts/main.js
Expand Up @@ -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;
}
}
Expand All @@ -159,7 +159,7 @@ function pollForJobs(state, ms) {
infiniteScroll();
if(!pollForJobs.timer) pollForJobs.timer = setTimeout(function(){
pollForJobs(state, ms);
}, 1000);
}, ms);
});
};

Expand Down

0 comments on commit dd82cdc

Please sign in to comment.