mirror of
https://github.com/symbiote/silverstripe-gridfieldextensions.git
synced 2024-10-22 17:05:39 +02:00
Added extra protection in case onadd update has ui == undefined
Fix for script errors while using GridFieldOrderableRows with module https://github.com/micschk/silverstripe-groupable-gridfield
This commit is contained in:
parent
a4d15e4ca4
commit
0d13112e44
@ -309,7 +309,7 @@
|
||||
var update = function(event, ui) {
|
||||
// If the item being dragged is unsaved, don't do anything
|
||||
var postback = true;
|
||||
if (ui.item.hasClass('ss-gridfield-inline-new')) {
|
||||
if ((ui != undefined) && ui.item.hasClass('ss-gridfield-inline-new')) {
|
||||
postback = false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user