@@ -291,15 +291,18 @@ if (typeof Extras.dashlet == "undefined" || !Extras.dashlet)
291
291
this . searchBoxContainer = Dom . get ( this . id + "-searchWithinResultsFilter" ) ;
292
292
this . searchBoxLabelContainer = Dom . get ( this . id + "-searchWithinResultsFilterLabel" ) ;
293
293
294
- if ( YAHOO . env . ua . webkit > 0 )
295
- Dom . removeClass ( this . entriesContainer , "scrollableList" ) ;
296
-
297
- Event . addListener ( this . id + "-configure-link" , "click" , this . onConfigClick , this , true ) ;
298
- Event . addListener ( this . id + "-refresh" , "click" , this . onRefresh , this , true ) ;
294
+ // if there is no searchBox divs, the user is not an admin user. In this case there is no point initializing any further.
295
+ if ( this . searchBoxLabelContainer != null )
296
+ {
297
+ if ( YAHOO . env . ua . webkit > 0 )
298
+ Dom . removeClass ( this . entriesContainer , "scrollableList" ) ;
299
299
300
- Event . addListener ( this . searchBoxContainer , "keyup" , this . onSearchWithinResultsFilterKeyup , this , true ) ;
300
+ Event . addListener ( this . id + "-configure-link" , "click" , this . onConfigClick , this , true ) ;
301
+ Event . addListener ( this . id + "-refresh" , "click" , this . onRefresh , this , true ) ;
302
+ Event . addListener ( this . searchBoxContainer , "keyup" , this . onSearchWithinResultsFilterKeyup , this , true ) ;
301
303
302
- this . init ( ) ;
304
+ this . init ( ) ;
305
+ }
303
306
} ,
304
307
305
308
/**
0 commit comments