witten
/
luminotes
Archived
1
0
Fork 0

Luminotes now recognizes "mailto:" links as external links, so you can include links to email addresses within your notes.

This commit is contained in:
Dan Helfman 2009-02-13 13:07:21 -08:00
parent 5e30028087
commit c2e3aae96a
2 changed files with 4 additions and 3 deletions

3
NEWS
View File

@ -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.

View File

@ -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 );