Skip to content
This repository has been archived by the owner on Jul 11, 2020. It is now read-only.

Commit

Permalink
fix: demo would no longer work.
Browse files Browse the repository at this point in the history
  • Loading branch information
knipknap committed Oct 15, 2012
1 parent 76cc4af commit ed78304
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,15 @@
"helper": function() {
return $(this).clone();
},
// "cursorAt" is important: make sure that the cursor is beneath
// (=not on top of) the dragged element, else "form.insert_at()"
// might not find the right target position for the new element.
"cursorAt": {'right': -5},
"stop": function(event, ui) {
var cls = spiffform_elements[$(this).attr('name')];
var obj = form.insert_at(event, new cls());
form.select(obj);
if (obj)
form.select(obj);
}
});
});
Expand Down

0 comments on commit ed78304

Please sign in to comment.