witten
/
luminotes
Archived
1
0
Fork 0

Fixed a bug in which performing a search when search results were already open would just hide the initial search results without showing the new ones.

This commit is contained in:
Dan Helfman 2009-01-29 15:52:11 -08:00
parent 32e184c553
commit caaff7af59
2 changed files with 6 additions and 4 deletions

3
NEWS
View File

@ -1,6 +1,9 @@
1.6.1:
* Fixed a bug in which hiding a focused note could (temporarily) leave an
empty gap at the bottom of the page.
* Fixed a bug in which performing a search when search results were already
open would just hide the initial search results without showing the new
ones.
1.6.0: January 27, 2009
* Switching between notebooks and loading notebooks is now much faster.

View File

@ -1971,14 +1971,13 @@ Wiki.prototype.notebook_has_tag = function ( notebook, tag_name, tag_value ) {
Wiki.prototype.display_search_results = function ( result ) {
// if there are no search results, indicate that and bail
if ( !result || result.notes.length == 0 ) {
if ( this.search_results_editor )
this.search_results_editor.shutdown();
this.display_message( "No matching notes.", undefined, getElement( "notes_top" ) );
return;
}
// create a "magic" search results note. but first close any open search results notes
if ( this.search_results_editor )
this.search_results_editor.shutdown();
// create a "magic" search results note
if ( this.notebook_has_tag( this.notebook, "forum" ) )
var notebook_word = "discussion";
else