Set up listeners for searches.

This commit is contained in:
George Stephanis 2015-08-12 14:30:52 -04:00
parent 435ef9218f
commit c65f5b17b2
1 changed files with 2 additions and 1 deletions

View File

@ -108,7 +108,8 @@
// this.listenTo( this.model, 'saved:rates', this.clearUnloadConfirmation );
$tbody.on( 'change', { view : this }, this.updateModelOnChange );
$search_field.on( 'change search', this.updateUrl() );
$search_field.on( 'keyup search', this.updateUrl() );
$search_field.on( 'keyup search', this.render() );
$(window).on( 'beforeunload', { view : this }, this.unloadConfirmation );
},