Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

Commit

Permalink
Merge pull request #311 from sonatype/history-event-handling
Browse files Browse the repository at this point in the history
INSIGHT-2191: allow for plugins to handle history on their own
  • Loading branch information
dbradicich committed Feb 17, 2012
2 parents 2f31152 + 419de57 commit 3a8ab00
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions nexus/nexus-webapp/src/main/webapp/js/Sonatype.utils.js
Expand Up @@ -914,8 +914,13 @@
{
token = window.location.hash.substring(1);
}

if (token && Sonatype.user.curr.repoServer && Sonatype.user.curr.repoServer.length)

Sonatype.view.historyDisabled = true;
var eventResult = Sonatype.Events.fireEvent('historyChanged',token);
Sonatype.view.historyDisabled = false;

//if event returns true, that means no event listener handled the data and stopped the process, so handle by default means
if (token && Sonatype.user.curr.repoServer && Sonatype.user.curr.repoServer.length && eventResult)
{
Sonatype.view.historyDisabled = true;

Expand Down

0 comments on commit 3a8ab00

Please sign in to comment.