Skip to content

Commit

Permalink
Update history section only if now running count changes
Browse files Browse the repository at this point in the history
  • Loading branch information
gschueler committed Jan 7, 2011
1 parent c406f2c commit d334966
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion rundeckapp/grails-app/views/menu/jobs.gsp
Expand Up @@ -111,12 +111,19 @@
document.location="${createLink(controller:'menu',action:'workflows')}"+(bfilters[name]?"?filterName="+encodeURIComponent(bfilters[name]):'');
}
}
var savedcount=0;
function _pageUpdateNowRunning(count){
if(count!=savedcount){
savedcount=count;
loadHistory();
}
}
/** START history
*
*/
function loadHistory(){
new Ajax.PeriodicalUpdater('histcontent',"${createLink(controller:'reports',action:'eventsFragment')}",{
new Ajax.Updater('histcontent',"${createLink(controller:'reports',action:'eventsFragment')}",{
parameters:{compact:true,nofilters:true,jobIdFilter:'!null',recentFilter:'1d',userFilter:'${session.user}',projFilter:'${session.project}'},
evalScripts:true,
frequency:5,
Expand Down

0 comments on commit d334966

Please sign in to comment.