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:
Luke Towers 2019-05-10 17:46:20 -06:00
parent 8448d4b972
commit 9f08086c27
3 changed files with 3 additions and 3 deletions

View File

@ -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";

View File

@ -54,7 +54,7 @@
else if (popup) {
link.popup()
}
else if (e.ctrlKey) {
else if (e.ctrlKey || e.metaKey) {
window.open(href)
}
else {

View File

@ -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())})}