Help with helper with sortable
Trying to make sure one list can not drag out of itself when a certain
condition is meet, but be able to drag into it from another list.
Here's my helper function, which work in everything buy IE. Thanks in
advance.
function dragHelp(e, el)
{
if(navTooWide)
{
try
{
if(e.currentTarget["id"].match("availLinks"))
{
return false;
}
}
catch(x)
{
if(e.target.parentElement["id"].match("availLinks"))
{
return false;
}
}
}
myHelper = $(el).clone();
myHelper.show();
$('body').append(myHelper);
$(myHelper).css({background:"none"});
return myHelper;
}