1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-26 08:04:38 +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) {
// follow the link if the Enter/Return key is tapped
$(this).val('');
event.preventDefault();
if(typeof parent.isPresent == "undefined") {
window.location = ui.item.edit_url;
} else {
parent.jQuery('#pw-admin-main')[0].contentWindow.document.location.href = ui.item.edit_url;
if(typeof event.key !== 'undefined') {
event.preventDefault();
if(typeof parent.isPresent == "undefined") {
window.location = ui.item.edit_url;
} else {
parent.jQuery('#pw-admin-main')[0].contentWindow.document.location.href = ui.item.edit_url;
}
}
}
}).focus(function() {

File diff suppressed because one or more lines are too long