mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
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
|
* List Widget
|
||||||
*
|
*
|
||||||
* Dependences:
|
* Dependences:
|
||||||
* - Row Link Plugin (october.rowlink.js)
|
* - Row Link Plugin (system/assets/ui/js/list.rowlink.js)
|
||||||
*/
|
*/
|
||||||
+function ($) { "use strict";
|
+function ($) { "use strict";
|
||||||
|
|
||||||
|
@ -54,7 +54,7 @@
|
|||||||
else if (popup) {
|
else if (popup) {
|
||||||
link.popup()
|
link.popup()
|
||||||
}
|
}
|
||||||
else if (e.ctrlKey) {
|
else if (e.ctrlKey || e.metaKey) {
|
||||||
window.open(href)
|
window.open(href)
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
2
modules/system/assets/ui/storm-min.js
vendored
2
modules/system/assets/ui/storm-min.js
vendored
@ -4042,7 +4042,7 @@ $(this).find('td').not('.'+options.excludeClass).click(function(e){if($(document
|
|||||||
if(onclick){onclick.apply(link.get(0))}
|
if(onclick){onclick.apply(link.get(0))}
|
||||||
else if(request){link.request()}
|
else if(request){link.request()}
|
||||||
else if(popup){link.popup()}
|
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}})
|
else{window.location=href}})
|
||||||
$(this).addClass(options.linkedClass)
|
$(this).addClass(options.linkedClass)
|
||||||
link.hide().after(link.html())})}
|
link.hide().after(link.html())})}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user