js: fix sortable set with no extending element

This commit is contained in:
Thomas Gelf 2016-03-10 20:58:15 +01:00
parent d3957c276c
commit 1d243e0aaf

View File

@ -66,7 +66,11 @@
fixRelatedActions: function($ul)
{
var $uls = $ul.find('li');
var last = $uls.length -2;
var last = $uls.length - 1;
if ($ul.find('.extend-set').length) {
last--;
}
$uls.each(function (idx, li) {
var $li = $(li);
if (idx === 0) {