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:
@@ -363,8 +363,8 @@ 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('');
|
||||||
|
if(typeof event.key !== 'undefined') {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
if(typeof parent.isPresent == "undefined") {
|
if(typeof parent.isPresent == "undefined") {
|
||||||
window.location = ui.item.edit_url;
|
window.location = ui.item.edit_url;
|
||||||
@@ -372,6 +372,7 @@ var ProcessWireAdminTheme = {
|
|||||||
parent.jQuery('#pw-admin-main')[0].contentWindow.document.location.href = ui.item.edit_url;
|
parent.jQuery('#pw-admin-main')[0].contentWindow.document.location.href = ui.item.edit_url;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}).focus(function() {
|
}).focus(function() {
|
||||||
// $(this).siblings('label').find('i').hide(); // hide icon
|
// $(this).siblings('label').find('i').hide(); // hide icon
|
||||||
}).blur(function() {
|
}).blur(function() {
|
||||||
|
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user