Merge pull request #161 from fractaslabs/master

Added extra protection in case onadd update has ui == undefined
This commit is contained in:
Marcus 2016-08-20 12:51:21 +10:00 committed by GitHub
commit 5b2b4760cf

View File

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