web-wiki/resources/jquery/jquery.suggestions.js
// if the textbox is empty then clear the result div, but leave other settings intouched

if the textbox is empty then clear the result div, but leave other settings intouched
if the textbox is empty then clear the result div but leave other settings intouched
function maybeFetch() {
			if ( context.data.$textbox.val().length === 0 ) {
				context.data.$container.hide();
				context.data.prevText = '';
			} else if ( context.data.$textbox.val() !== context.data.prevText ) {
				if ( typeof context.config.fetch === 'function' ) {
					context.data.prevText = context.data.$textbox.val();
					context.config.fetch.call( context.data.$textbox, context.data.$textbox.val() );
				}
			}
		}
function maybeFetch ( ) { if ( context . data . $textbox . val ( ) . length === 0 ) { context . data . $container . hide ( ) ; context . data . prevText = '' ; } else if ( context . data . $textbox . val ( ) !== context . data . prevText ) { if ( typeof context . config . fetch === 'function' ) { context . data . prevText = context . data . $textbox . val ( ) ; context . config . fetch . call ( context . data . $textbox , context . data . $textbox . val ( ) ) ; } } }
if the textbox is empty then clear the result div, but leave other settings intouched
if the textbox is empty then clear the result div but leave other settings intouched