source/web/extras/components/dashlets/audit-application.js
/**
       * Intercept keyup events. to avoid hammering the server, do not actually refresh the datatime until the user has stopped typing.
       * This "stop" is manifested by 2 keyup events separated by more than consecutiveRefreshMinimumDelay.
       *
       * @method onSearchWithinResultsFilterKeyup
       * @param {object} e    HTML event
       */
Intercept keyup events. to avoid hammering the server, do not actually refresh the datatime until the user has stopped typing.
This "stop" is manifested by 2 keyup events separated by more than consecutiveRefreshMinimumDelay.

@method onSearchWithinResultsFilterKeyup
@param {object} e    HTML event
Intercept keyup events . to avoid hammering the server do not actually refresh the datatime until the user has stopped typing . This " stop " is manifested by 2 keyup events separated by more than consecutiveRefreshMinimumDelay . @method onSearchWithinResultsFilterKeyup @param { object } e HTML event
function AuditApplication_onSearchWithinResultsFilterKeyup(e)
      {
         this.lastKeyUpEventTimeStamp = new Date().getTime();
         var that = this; 
         setTimeout(function()
         {
            var currentTime = new Date().getTime();
            if (currentTime - that.lastKeyUpEventTimeStamp > that.consecutiveRefreshMinimumDelay)
               that.dispatchKeyupRefreshRequest();
         }, that.consecutiveRefreshMinimumDelay + 100);
      }
function AuditApplication_onSearchWithinResultsFilterKeyup ( e ) { this . lastKeyUpEventTimeStamp = new Date ( ) . getTime ( ) ; var that = this ; setTimeout ( function ( ) { var currentTime = new Date ( ) . getTime ( ) ; if ( currentTime - that . lastKeyUpEventTimeStamp > that . consecutiveRefreshMinimumDelay ) that . dispatchKeyupRefreshRequest ( ) ; } , that . consecutiveRefreshMinimumDelay + 100 ) ; }
Intercept keyup events.
Intercept keyup events .
// "that" is the new "this" :), i.e access the dashlet object (current 'this') inside setTimeout