Prevent tabs from open in the same tab all the time
This commit is contained in:
parent
0b039ea969
commit
0f8a409cec
@ -86,8 +86,9 @@ contextMenu = {
|
|||||||
function() { settings.setLogin() },
|
function() { settings.setLogin() },
|
||||||
function() { settings.setSorting() },
|
function() { settings.setSorting() },
|
||||||
function() { settings.setDropboxKey() },
|
function() { settings.setDropboxKey() },
|
||||||
function() { window.open(lychee.website, "_newtab"); },
|
function() { window.open(lychee.website); },
|
||||||
function() { window.open("plugins/check/", "_newtab"); },
|
function() { window.open("plugins/check/"); },
|
||||||
|
function() { window.open("plugins/displaylog/"); },
|
||||||
function() { lychee.logout() }
|
function() { lychee.logout() }
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -98,8 +99,9 @@ contextMenu = {
|
|||||||
["separator", -1],
|
["separator", -1],
|
||||||
["<a class='icon-info-sign'></a> About Lychee", 3],
|
["<a class='icon-info-sign'></a> About Lychee", 3],
|
||||||
["<a class='icon-dashboard'></a> Diagnostics", 4],
|
["<a class='icon-dashboard'></a> Diagnostics", 4],
|
||||||
|
["<a class='icon-list'></a> Show Log", 5],
|
||||||
["separator", -1],
|
["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");
|
contextMenu.show(items, mouse_x, mouse_y, "right");
|
||||||
@ -217,7 +219,7 @@ contextMenu = {
|
|||||||
items;
|
items;
|
||||||
|
|
||||||
contextMenu.fns = [
|
contextMenu.fns = [
|
||||||
function() { window.open(photo.getDirectLink(),"_newtab") },
|
function() { window.open(photo.getDirectLink()) },
|
||||||
function() { photo.getArchive(photoID) }
|
function() { photo.getArchive(photoID) }
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -276,7 +278,7 @@ contextMenu = {
|
|||||||
function() { photo.share(photoID, 1) },
|
function() { photo.share(photoID, 1) },
|
||||||
function() { photo.share(photoID, 2) },
|
function() { photo.share(photoID, 2) },
|
||||||
function() { photo.share(photoID, 3) },
|
function() { photo.share(photoID, 3) },
|
||||||
function() { window.open(photo.getDirectLink(),"_newtab") }
|
function() { window.open(photo.getDirectLink()) }
|
||||||
];
|
];
|
||||||
|
|
||||||
link = photo.getViewLink(photoID);
|
link = photo.getViewLink(photoID);
|
||||||
|
@ -20,7 +20,7 @@ $(document).ready(function(){
|
|||||||
$(document).on("mouseup", multiselect.getSelection);
|
$(document).on("mouseup", multiselect.getSelection);
|
||||||
|
|
||||||
/* Header */
|
/* 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_signin").on(event_name, lychee.loginDialog);
|
||||||
$("#button_settings").on("click", contextMenu.settings);
|
$("#button_settings").on("click", contextMenu.settings);
|
||||||
$("#button_share").on(event_name, function(e) {
|
$("#button_share").on(event_name, function(e) {
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user