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:
@@ -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
Reference in New Issue
Block a user