mirror of
https://github.com/symbiote/silverstripe-gridfieldextensions.git
synced 2024-10-22 17:05:39 +02:00
Merge pull request #161 from fractaslabs/master
Added extra protection in case onadd update has ui == undefined
This commit is contained in:
commit
5b2b4760cf
@ -309,7 +309,7 @@
|
|||||||
var update = function(event, ui) {
|
var update = function(event, ui) {
|
||||||
// If the item being dragged is unsaved, don't do anything
|
// If the item being dragged is unsaved, don't do anything
|
||||||
var postback = true;
|
var postback = true;
|
||||||
if (ui.item.hasClass('ss-gridfield-inline-new')) {
|
if ((ui != undefined) && ui.item.hasClass('ss-gridfield-inline-new')) {
|
||||||
postback = false;
|
postback = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user