From c2e3aae96a5794ec359920d445bd318597ac2e4c Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Fri, 13 Feb 2009 13:07:21 -0800 Subject: [PATCH] Luminotes now recognizes "mailto:" links as external links, so you can include links to email addresses within your notes. --- NEWS | 3 ++- static/js/Wiki.js | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/NEWS b/NEWS index f11d4ee..9d5ebae 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,6 @@ 1.6.6: ? - * + * Luminotes now recognizes "mailto:" links as external links, so you can + include links to email addresses within your notes. 1.6.5: February 12, 2009 * Now ignoring even more unneeded HTML tags from an MS Word copy-and-paste. diff --git a/static/js/Wiki.js b/static/js/Wiki.js index 8f5074e..14c790c 100644 --- a/static/js/Wiki.js +++ b/static/js/Wiki.js @@ -626,7 +626,7 @@ Wiki.prototype.load_editor = function ( note_title, note_id, revision, previous_ Wiki.prototype.resolve_link = function ( note_title, link, force, callback ) { // if the title looks like a URL, then make it a link to an external site - if ( /^\w+:\/\//.test( note_title ) ) + if ( /^\w+:\/\//.test( note_title ) || /^mailto:/.test( note_title ) ) var title_looks_like_url = true; else var title_looks_like_url = false; @@ -751,7 +751,7 @@ Wiki.prototype.parse_loaded_editor = function ( result, note_title, requested_re var username = result.note.username; } else { // if the title looks like a URL, then make it a link to an external site - if ( /^\w+:\/\//.test( note_title ) ) { + if ( /^\w+:\/\//.test( note_title ) || /^mailto:/.test( note_title ) ) { link.target = "_new"; link.href = note_title; window.open( link.href );