app/assets/javascripts/itsf/backend/vendor/jquery.dragtable.js in itsf_backend-1.1.0 vs app/assets/javascripts/itsf/backend/vendor/jquery.dragtable.js in itsf_backend-1.1.1
- old
+ new
@@ -395,9 +395,12 @@
}
function swapNodes(a, b) {
var aparent = a.parentNode;
var asibling = a.nextSibling === b ? a : a.nextSibling;
+ if(b === undefined) {
+ return;
+ }
b.parentNode.insertBefore(a, b);
aparent.insertBefore(b, asibling);
}
})(jQuery);
\ No newline at end of file