Open `rowlink` rows in a new tab when the Command or Ctrl key is held down (previously only did it for the Ctrl key)
This commit is contained in:
parent
8448d4b972
commit
9f08086c27
|
|
@ -2,7 +2,7 @@
|
|||
* List Widget
|
||||
*
|
||||
* Dependences:
|
||||
* - Row Link Plugin (october.rowlink.js)
|
||||
* - Row Link Plugin (system/assets/ui/js/list.rowlink.js)
|
||||
*/
|
||||
+function ($) { "use strict";
|
||||
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@
|
|||
else if (popup) {
|
||||
link.popup()
|
||||
}
|
||||
else if (e.ctrlKey) {
|
||||
else if (e.ctrlKey || e.metaKey) {
|
||||
window.open(href)
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
|
|
@ -4042,7 +4042,7 @@ $(this).find('td').not('.'+options.excludeClass).click(function(e){if($(document
|
|||
if(onclick){onclick.apply(link.get(0))}
|
||||
else if(request){link.request()}
|
||||
else if(popup){link.popup()}
|
||||
else if(e.ctrlKey){window.open(href)}
|
||||
else if(e.ctrlKey||e.metaKey){window.open(href)}
|
||||
else{window.location=href}})
|
||||
$(this).addClass(options.linkedClass)
|
||||
link.hide().after(link.html())})}
|
||||
|
|
|
|||
Loading…
Reference in New Issue