witten
/
luminotes
Archived
1
0
Fork 0

Fixed a bug in which right clicking on a note did not always open the web browser's context menu. Also, can now middle click on a note link to open it in a new window or tab.

This commit is contained in:
Dan Helfman 2009-05-19 13:06:58 -07:00
parent d37422b592
commit c442f59894
2 changed files with 15 additions and 2 deletions

6
NEWS
View File

@ -1,10 +1,14 @@
1.6.12:
1.6.12: May 19, 2009
* Added a toolbar color button for setting text and background colors.
* Added a "start a new discussion" link to each discussion forum page.
* Updated Luminotes Server INSTALL file with instructions for setting the
http_url configuration setting.
* You can now middle click on a link within a note to open it in a new
browser window or tab.
* Fixed a bug in Luminotes Desktop in which a backslash within a note was
duplicated each time the note was saved.
* Fixed a bug in which right clicking on a note did not always open the web
browser's context menu.
* Fixed a bug in which special characters in a customer's name prevented
PayPal payments from going through properly.

View File

@ -1100,7 +1100,7 @@ Editor.prototype.mouse_released = function ( event ) {
function handle_click( event ) {
// we only want to deal with left mouse button clicks
if ( event.mouse().button.middle || event.mouse().button.right )
if ( event.mouse().button.right )
return false;
// search through the tree of elements containing the clicked target. if a link isn't found, bail
@ -1125,6 +1125,12 @@ Editor.prototype.mouse_released = function ( event ) {
return true;
}
// middle click opens the link in a new window
if ( event.mouse().button.middle ) {
window.open( link.href );
return true;
}
// links with targets are considered to be external links pointing outside of this wiki
if ( link.target || id == undefined ) {
// if this is a read-only editor and the link target is "_top", go to the link's URL directly
@ -1162,6 +1168,9 @@ Editor.prototype.mouse_released = function ( event ) {
}
Editor.prototype.mouse_clicked = function ( event ) {
if ( event.mouse().button.middle || event.mouse().button.right )
return;
var target = event.target();
if ( !target ) return;