Skip to content

Commit 67e8c8b

Browse files
author
Romain GUINOT
committed
0.52:
- fixed javascript issue with non-admin users. Addresses (new) Github issue #1.
1 parent f7b3124 commit 67e8c8b

File tree

3 files changed

+15
-8
lines changed

3 files changed

+15
-8
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,10 @@ Some sample screenshots with different configurations are included below :
171171
Changelog
172172
---------
173173

174+
0.52:
175+
176+
- fixed javascript issue with non-admin users. Addresses (new) Github issue #1.
177+
174178
0.51:
175179

176180
- no new features or bugfixes

build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
build.version=0.51
1+
build.version=0.52
22
project.name=audit-dashlet
33
jar.name=${project.name}-${build.version}.jar

source/web/extras/components/dashlets/audit-application.js

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -291,15 +291,18 @@ if (typeof Extras.dashlet == "undefined" || !Extras.dashlet)
291291
this.searchBoxContainer = Dom.get(this.id + "-searchWithinResultsFilter");
292292
this.searchBoxLabelContainer = Dom.get(this.id + "-searchWithinResultsFilterLabel");
293293

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");
299299

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);
301303

302-
this.init();
304+
this.init();
305+
}
303306
},
304307

305308
/**

0 commit comments

Comments
 (0)