Prevent tabs from open in the same tab all the time

This commit is contained in:
Tobias Reich 2014-06-01 12:21:34 +02:00
parent 0b039ea969
commit 0f8a409cec
3 changed files with 9 additions and 7 deletions

View File

@ -86,8 +86,9 @@ contextMenu = {
function() { settings.setLogin() },
function() { settings.setSorting() },
function() { settings.setDropboxKey() },
function() { window.open(lychee.website, "_newtab"); },
function() { window.open("plugins/check/", "_newtab"); },
function() { window.open(lychee.website); },
function() { window.open("plugins/check/"); },
function() { window.open("plugins/displaylog/"); },
function() { lychee.logout() }
];
@ -98,8 +99,9 @@ contextMenu = {
["separator", -1],
["<a class='icon-info-sign'></a> About Lychee", 3],
["<a class='icon-dashboard'></a> Diagnostics", 4],
["<a class='icon-list'></a> Show Log", 5],
["separator", -1],
["<a class='icon-signout'></a> Sign Out", 5]
["<a class='icon-signout'></a> Sign Out", 6]
];
contextMenu.show(items, mouse_x, mouse_y, "right");
@ -217,7 +219,7 @@ contextMenu = {
items;
contextMenu.fns = [
function() { window.open(photo.getDirectLink(),"_newtab") },
function() { window.open(photo.getDirectLink()) },
function() { photo.getArchive(photoID) }
];
@ -276,7 +278,7 @@ contextMenu = {
function() { photo.share(photoID, 1) },
function() { photo.share(photoID, 2) },
function() { photo.share(photoID, 3) },
function() { window.open(photo.getDirectLink(),"_newtab") }
function() { window.open(photo.getDirectLink()) }
];
link = photo.getViewLink(photoID);

View File

@ -20,7 +20,7 @@ $(document).ready(function(){
$(document).on("mouseup", multiselect.getSelection);
/* Header */
$("#hostedwith").on(event_name, function() { window.open(lychee.website,"_newtab") });
$("#hostedwith").on(event_name, function() { window.open(lychee.website) });
$("#button_signin").on(event_name, lychee.loginDialog);
$("#button_settings").on("click", contextMenu.settings);
$("#button_share").on(event_name, function(e) {

File diff suppressed because one or more lines are too long