source/web/extras/components/dashlets/audit-application.js
/**
       * Initialise the display of the dashlet
       *
       * @method init
       */
Initialise the display of the dashlet
@method init
Initialise the display of the dashlet @method init
function AuditApplication_init()
      {
         this.searchBoxLabelContainer.innerHTML = this.msg("audit.dashlet.searchWithinResults", 0) +" :";
         this.searchBoxContainer.value = "";
         Dom.removeClass(this.searchBoxContainer,'invalid-regex');
         Dom.removeClass(this.searchBoxContainer,'valid-regex');
         this.addUtilPrototypes();
         if (this.options.application != "")
         {
            var appHeader = this.options.application;
            var vfHeader  = this.options.valueFilter ? " " + this.msg("audit.dashlet.valuefilteredOn", this.options.valueFilter) : "";
            var validLimit = this.options.limit != "" && !isNaN(this.options.limit) && !((this.options.limit * 1) < 1 );
            var limitHeader = validLimit ? " (" + this.options.limit.replace(/^0+/,'') + " max)" : ""; 
            this.titleContainer.innerHTML = this.msg("audit.dashlet.header.default")+ " : " + appHeader + vfHeader + limitHeader;
            Dom.removeClass(this.searchBoxContainer,'shy');
            Dom.removeClass(this.searchBoxLabelContainer,'shy');
         }
         else
         {
            this.titleContainer.innerHTML = this.msg("audit.dashlet.header.default");
            Dom.addClass(this.searchBoxContainer,'shy');
            Dom.addClass(this.searchBoxLabelContainer,'shy');
         }
         if (this.dataTable)
         {
            this.dataTable.destroy(); 
            this.dataTable = null;    
         }
         if (this.options.application != "")
         {
            this.setMessage(); 
            this.loadData();
         }
         else
            this.setMessage(this.msg("audit.dashlet.notConfigured"));
      }
function AuditApplication_init ( ) { this . searchBoxLabelContainer . innerHTML = this . msg ( "audit.dashlet.searchWithinResults" , 0 ) + " :" ; this . searchBoxContainer . value = "" ; Dom . removeClass ( this . searchBoxContainer , 'invalid-regex' ) ; Dom . removeClass ( this . searchBoxContainer , 'valid-regex' ) ; this . addUtilPrototypes ( ) ; if ( this . options . application != "" ) { var appHeader = this . options . application ; var vfHeader = this . options . valueFilter ? " " + this . msg ( "audit.dashlet.valuefilteredOn" , this . options . valueFilter ) : "" ; var validLimit = this . options . limit != "" && ! isNaN ( this . options . limit ) && ! ( ( this . options . limit * 1 ) < 1 ) ; var limitHeader = validLimit ? " (" + this . options . limit . replace ( / ^0+ / , '' ) + " max)" : "" ; this . titleContainer . innerHTML = this . msg ( "audit.dashlet.header.default" ) + " : " + appHeader + vfHeader + limitHeader ; Dom . removeClass ( this . searchBoxContainer , 'shy' ) ; Dom . removeClass ( this . searchBoxLabelContainer , 'shy' ) ; } else { this . titleContainer . innerHTML = this . msg ( "audit.dashlet.header.default" ) ; Dom . addClass ( this . searchBoxContainer , 'shy' ) ; Dom . addClass ( this . searchBoxLabelContainer , 'shy' ) ; } if ( this . dataTable ) { this . dataTable . destroy ( ) ; this . dataTable = null ; } if ( this . options . application != "" ) { this . setMessage ( ) ; this . loadData ( ) ; } else this . setMessage ( this . msg ( "audit.dashlet.notConfigured" ) ) ; }
Initialise the display of the dashlet
 @method init
Initialise the display of the dashlet @method init
// reset search box on init // push utility prototypes to String // Set the title according to selected options (args) // valid limit parameter values : strictly positive integers. other values are ignored // trim leading zeros, if any // an application name has been configured, display the search box // don't display the search box if no application name has been configured // Load the data // nulls the table contents // explicitely null out the table itself // a 'not configured' msg may be present. reset to blank since there is now a configured app.