source/web/extras/components/dashlets/audit-application.js
/**
       * Do not issue successive refresh requests until a minimum delay (consecutiveRefreshMinimumDelay) has elapsed between two requests
       *
       * @method onRefresh
       * @param {object} e    HTML event
       */
Do not issue successive refresh requests until a minimum delay (consecutiveRefreshMinimumDelay) has elapsed between two requests
@method onRefresh
@param {object} e    HTML event
Do not issue successive refresh requests until a minimum delay ( consecutiveRefreshMinimumDelay ) has elapsed between two requests @method onRefresh @param { object } e HTML event
function AuditApplication_onRefresh(e)
      {
         if (e)
         Event.preventDefault(e); 
         this.lastButtonRefreshEventTimeStamp = new Date().getTime();
         var that = this; 
         setTimeout(function()
         {
            var currentTime = new Date().getTime();
            if (currentTime - that.lastButtonRefreshEventTimeStamp > that.consecutiveRefreshMinimumDelay)
               that.dispatchButtonRefreshRequest();
         }, that.consecutiveRefreshMinimumDelay + 100);
      }
function AuditApplication_onRefresh ( e ) { if ( e ) Event . preventDefault ( e ) ; this . lastButtonRefreshEventTimeStamp = new Date ( ) . getTime ( ) ; var that = this ; setTimeout ( function ( ) { var currentTime = new Date ( ) . getTime ( ) ; if ( currentTime - that . lastButtonRefreshEventTimeStamp > that . consecutiveRefreshMinimumDelay ) that . dispatchButtonRefreshRequest ( ) ; } , that . consecutiveRefreshMinimumDelay + 100 ) ; }
Do not issue successive refresh requests until a minimum delay (consecutiveRefreshMinimumDelay) has elapsed between two requests
 @method onRefresh
 @param {object} e    HTML event
Do not issue successive refresh requests until a minimum delay ( consecutiveRefreshMinimumDelay ) has elapsed between two requests @method onRefresh @param { object } e HTML event
// Stop browser's default click behaviour for the link // "that" is the new "this" :), i.e access the dashlet object (current 'this') inside setTimeout