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:
parent
32e184c553
commit
caaff7af59
3
NEWS
3
NEWS
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Reference in New Issue