aboutsummaryrefslogtreecommitdiffstats
path: root/www/js/views/fms.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js/views/fms.js')
-rw-r--r--www/js/views/fms.js13
1 files changed, 12 insertions, 1 deletions
diff --git a/www/js/views/fms.js b/www/js/views/fms.js
index 384d125..848690d 100644
--- a/www/js/views/fms.js
+++ b/www/js/views/fms.js
@@ -21,6 +21,14 @@
afterDisplay: function() {},
+ navigate: function( route, direction ) {
+ if ( !direction ) {
+ direction == 'left';
+ }
+
+ FMS.router.navigate( route, { trigger: true } );
+ },
+
onClickButtonPrev: function() {
this.navigate( this.prev, 'right' );
},
@@ -33,7 +41,10 @@
alert(msg);
},
- destroy: function() { console.log('destory for ' + this.id); this.remove(); }
+ destroy: function() { console.log('destory for ' + this.id); this._destroy(); this.remove(); },
+
+ _destroy: function() {}
})
});
+ _.extend( FMS.FMSView, Backbone.Events );
})(FMS, Backbone, _, $);