mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX Fixed drag link event handling on ComplexTableField.js (#4737) (from r93754)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@93940 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
a0092fb348
commit
22bc6827ae
@ -20,6 +20,13 @@ ComplexTableField.prototype = {
|
|||||||
if(defaultAction) {
|
if(defaultAction) {
|
||||||
rules['#'+this.id+' table.data tbody td'] = {
|
rules['#'+this.id+' table.data tbody td'] = {
|
||||||
onclick: function(e) {
|
onclick: function(e) {
|
||||||
|
var elt = Event.element(e);
|
||||||
|
// Check the tag, as otherwise this
|
||||||
|
// function can take over checkbox
|
||||||
|
// click actions etc. See ticket #4737
|
||||||
|
if (elt.tagName != 'TD' && elt.tagName != 'TR') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
var link = $$('.'+defaultAction, Event.element(e).parentNode)[0].href;
|
var link = $$('.'+defaultAction, Event.element(e).parentNode)[0].href;
|
||||||
this.openPopup(null, link);
|
this.openPopup(null, link);
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user