Be more specific as to what we're listening for.
This commit is contained in:
parent
8dc2126718
commit
a8b1cabc0b
|
@ -77,9 +77,9 @@
|
|||
initialize : function() {
|
||||
this.per_page = 3;
|
||||
this.qty_pages = Math.ceil( $.map( this.model.get( 'rates' ), function(v){return [v]} ).length / this.per_page );
|
||||
this.listenTo( this.model, 'change', this.setUnloadConfirmation );
|
||||
// this.listenTo( this.model, 'saved', this.clearUnloadConfirmation );
|
||||
$(window).on( 'beforeunload', { view : this }, this.unloadConfirmation );
|
||||
this.listenTo( this.model, 'change:rates', this.setUnloadConfirmation );
|
||||
// this.listenTo( this.model, 'saved:rates', this.clearUnloadConfirmation );
|
||||
$tbody.on( 'change', { view : this }, this.updateModelOnChange );
|
||||
},
|
||||
setUnloadConfirmation : function() {
|
||||
|
|
Loading…
Reference in New Issue