diff options
author | Struan Donald <struan@exo.org.uk> | 2013-06-10 17:45:16 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2013-06-10 17:45:16 +0100 |
commit | bade87483fcd8f80ff6e8e11ec9624843218046d (patch) | |
tree | 59c0c750d4595cbed04e7c4923e080cbe7da7db1 /www/js | |
parent | 15068d23b28afc351fabcbdba4ec1a4db90722f7 (diff) |
display rate this app button on sent screen. Fixes #446
Diffstat (limited to 'www/js')
-rw-r--r-- | www/js/views/sent.js | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/www/js/views/sent.js b/www/js/views/sent.js index 179d9f7..d146db6 100644 --- a/www/js/views/sent.js +++ b/www/js/views/sent.js @@ -9,7 +9,8 @@ 'pagehide': 'destroy', 'pagebeforeshow': 'beforeDisplay', 'pageshow': 'afterDisplay', - 'vclick .ui-btn-left': 'onClickButtonPrev' + 'vclick .ui-btn-left': 'onClickButtonPrev', + 'vclick #rate_app': 'onClickRateApp' }, render: function(){ @@ -21,6 +22,14 @@ 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; } }) }); |