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

Commit

Permalink
Revert "close search engine on context change" as it breaks results p…
Browse files Browse the repository at this point in the history
…ane in admin
  • Loading branch information
cdujeu committed Mar 4, 2015
1 parent b20d9b7 commit e63e0a8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/plugins/gui.ajax/res/js/ajaxplorer.js

Large diffs are not rendered by default.

Expand Up @@ -434,13 +434,15 @@ Class.create("SearchEngine", AjxpPane, {

document.observe("ajaxplorer:repository_list_refreshed", this.refreshObserver );

/*
if($(this.options.toggleResultsVisibility)){
this.ctxChangeObserver = function(){
this.showToggleResult(false);
this.closeSearchInput();
}.bind(this);
document.observe("ajaxplorer:context_changed", this.ctxChangeObserver);
}
*/

this.resize();
},
Expand Down Expand Up @@ -556,9 +558,11 @@ Class.create("SearchEngine", AjxpPane, {
}
document.stopObserving("ajaxplorer:repository_list_refreshed", this.refreshObserver);
document.stopObserving("ajaxplorer:registry_loaded", this.searchModeObserver);
/*
if(this.ctxChangeObserver){
document.stopObserving("ajaxplorer:context_changed", this.ctxChangeObserver);
}
*/
if(this.boundSizeEvents){
this.boundSizeEvents.each(function(pair){
document.stopObserving(pair.key, pair.value);
Expand Down

0 comments on commit e63e0a8

Please sign in to comment.