diff options
Diffstat (limited to 'www/js/views/sent.js')
-rw-r--r-- | www/js/views/sent.js | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/www/js/views/sent.js b/www/js/views/sent.js deleted file mode 100644 index d146db6..0000000 --- a/www/js/views/sent.js +++ /dev/null @@ -1,36 +0,0 @@ -(function (FMS, Backbone, _, $) { - _.extend( FMS, { - SentView: FMS.FMSView.extend({ - template: 'sent', - id: 'sent-page', - prev: 'around', - - events: { - 'pagehide': 'destroy', - 'pagebeforeshow': 'beforeDisplay', - 'pageshow': 'afterDisplay', - 'vclick .ui-btn-left': 'onClickButtonPrev', - 'vclick #rate_app': 'onClickRateApp' - }, - - render: function(){ - if ( !this.template ) { - console.log('no template to render'); - return; - } - template = _.template( tpl.get( this.template ) ); - this.$el.html(template(FMS.createdReport.toJSON())); - this.afterRender(); - return this; - }, - - onClickRateApp: function(e) { - e.preventDefault(); - var el = $('#rate_app'); - var href = el.attr('href'); - window.open(href, '_system'); - return false; - } - }) - }); -})(FMS, Backbone, _, $); |