1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-29 09:29:55 +02:00

Fix issue processwire/processwire-issues#567 w/AdminThemeUikit search box ctrl/cmd-click did not open new tab

This commit is contained in:
Ryan Cramer
2018-04-25 06:12:50 -04:00
parent a9051a252f
commit ace36fb415
2 changed files with 8 additions and 7 deletions

View File

@@ -363,13 +363,14 @@ var ProcessWireAdminTheme = {
}, },
select: function(event, ui) { select: function(event, ui) {
// follow the link if the Enter/Return key is tapped // follow the link if the Enter/Return key is tapped
$(this).val(''); $(this).val('');
event.preventDefault(); if(typeof event.key !== 'undefined') {
if(typeof parent.isPresent == "undefined") { event.preventDefault();
window.location = ui.item.edit_url; if(typeof parent.isPresent == "undefined") {
} else { window.location = ui.item.edit_url;
parent.jQuery('#pw-admin-main')[0].contentWindow.document.location.href = ui.item.edit_url; } else {
parent.jQuery('#pw-admin-main')[0].contentWindow.document.location.href = ui.item.edit_url;
}
} }
} }
}).focus(function() { }).focus(function() {

File diff suppressed because one or more lines are too long