From d5fbc23001633a2e12d3770d2fb6764ec36e7b5d Mon Sep 17 00:00:00 2001 From: prespic Date: Thu, 23 Jul 2015 10:47:36 +0200 Subject: [PATCH] itemPath itemPath should be taken from this.options instead of group.options. When each list has different container structure. --- source/js/jquery-sortable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/js/jquery-sortable.js b/source/js/jquery-sortable.js index 69a1312..5b54721 100644 --- a/source/js/jquery-sortable.js +++ b/source/js/jquery-sortable.js @@ -462,7 +462,7 @@ this.rootGroup = this.options.rootGroup || this.group this.handle = this.rootGroup.options.handle || this.rootGroup.options.itemSelector - var itemPath = this.rootGroup.options.itemPath + var itemPath = this.options.itemPath this.target = itemPath ? this.el.find(itemPath) : this.el this.target.on(eventNames.start, this.handle, $.proxy(this.dragInit, this))