Fix Bug 38665 - Show clean 'x' icon on the search box only when useful

Change-Id: I3fc295728f25cce7a326101467146f8ee3415116
This commit is contained in:
Santhosh Thottingal
2012-07-25 18:13:50 +05:30
parent 388f9cde80
commit 5703f0f1ad
5 changed files with 28 additions and 10 deletions

View File

@@ -123,15 +123,11 @@
languages: that.languages,
success: function() {
// clear the search field.
that.$languageFilter.val( '' );
that.$languageFilter.languagefilter( 'clear' );
that.success();
}
} );
$( '.clear-button' ).on( 'click', function() {
// go to the ready state.
that.ready();
} );
},
keyup: function( e ) {