aboutsummaryrefslogtreecommitdiffstats
path: root/www/js/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js/app.js')
-rw-r--r--www/js/app.js7
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;