I'm trying to allow an element to be draggable only if a certain condition is met. Here's my code:
$(".folder-box").draggable({ revert: "invalid" }); // prevent this from being applied when some ko.observable property is true
I don't want to disable the element, I just want to prevent it from being draggable.