Skip to content

Commit

Permalink
fix error in search result opening
Browse files Browse the repository at this point in the history
if an item on the search page was clicked the first time the page loaded,
rendering failed. this now works again
  • Loading branch information
exi committed Oct 31, 2011
1 parent d02b17e commit f3157df
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions phprojekt/application/Default/Views/dojo/scripts/Main.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ dojo.declare("phpr.Default.SearchContentMixin", phpr.Default.System.DefaultViewC
delete this.view.detailsBox;
},
update: function(config) {
this.inherited(arguments);
this.clear();
this._renderSearchResults(config || {});
},
Expand Down Expand Up @@ -238,18 +239,12 @@ dojo.declare("phpr.Default.Main", phpr.Default.System.Component, {
},

loadResult: function(/*int*/id, /*String*/module, /*int*/projectId) {
this.cleanPage();
phpr.currentProjectId = projectId;
if (phpr.isGlobalModule(module)) {
phpr.tree.fadeOut();
} else {
phpr.tree.fadeIn();
}

phpr.pageManager.changeState({
moduleName: module,
id: id,
projectId: projectId
}, {
forceModuleReload: true
});
},

Expand Down

0 comments on commit f3157df

Please sign in to comment.