diff options
author | Jedidiah Broadbent <hello@jedidiah.eu> | 2013-06-03 16:13:13 +0100 |
---|---|---|
committer | Jedidiah Broadbent <hello@jedidiah.eu> | 2013-06-03 16:13:13 +0100 |
commit | 00935ce1da08124918becbe6b2d97d3b6703dc5c (patch) | |
tree | 2c65240af80a0233c8f2b2a141a0926497ad8986 /www/js/app.js | |
parent | 60b3caaece752d9915a208f7f94b23d7cfbd8ddb (diff) | |
parent | dbc9edbfb12768d6c368e99f4580022b4a5ce2ee (diff) |
Merge branch 'phonegap-jquery-mobile-new' of ssh://git.mysociety.org/data/git/public/fixmystreet into phonegap-jquery-mobile-new
Diffstat (limited to 'www/js/app.js')
-rw-r--r-- | www/js/app.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/www/js/app.js b/www/js/app.js index 06b9e88..3caba69 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -129,6 +129,13 @@ var tpl = { localStorage.currentDraftID = null; }, + openExternal: function(e) { + e.preventDefault(); + var el = $(e.srcElement); + window.open(el.attr('href'), '_system'); + return false; + }, + initialize: function () { if ( this.initialized == 1 ) { return this; |