Fixed id attribute retrieval due to refactoring in 5b3edc5

This commit is contained in:
Paul van Tilburg 2012-01-16 20:27:09 +01:00
parent 9e0198cd03
commit 6300da2881

View file

@ -12,16 +12,15 @@ $(document).ready(function() {
// The plempable jQuery plugin containing most of the Plemp! UI
// functionality.
$.fn.plempable = function(data) {
console.log(data);
this.draggable({ stack: ".draggable",
containment: "window",
stop: update_drag_info })
.hover(function() { $(this).find(".comments").fadeIn(); },
function() { $(this).find(".comments").fadeOut(); });
this.find(".delete").click({ id: this.id,
this.find(".delete").click({ id: this.attr("id"),
element: this },
delete_draggable);
this.find(".title").editable('draggables/' + this.id,
this.find(".title").editable('draggables/' + this.attr("id"),
{ tooltip: "Click to edit…",
name: 'title',
submit: 'OK',