diff options
author | Struan Donald <struan@exo.org.uk> | 2013-02-28 17:01:10 +0000 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2013-02-28 17:01:10 +0000 |
commit | e481a7fd383e041cd6be4f262a4dcc40b3e5a744 (patch) | |
tree | 6abd5f1866a3b9b48ed18ed45c21e44cc05c5247 /www/js/views/fms.js | |
parent | df7de48f2eb5c4c6699273392296f87af628ea51 (diff) |
add in photo page and navigation to page
also used jquery mobile pageshow/hide events instead of our own
Diffstat (limited to 'www/js/views/fms.js')
-rw-r--r-- | www/js/views/fms.js | 13 |
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, _, $); |