From 6300da288158c8c57cca4f61c36e39b4acf5f32b Mon Sep 17 00:00:00 2001 From: Paul van Tilburg Date: Mon, 16 Jan 2012 20:27:09 +0100 Subject: [PATCH] Fixed id attribute retrieval due to refactoring in 5b3edc5 --- public/javascripts/plemp-ui.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/public/javascripts/plemp-ui.js b/public/javascripts/plemp-ui.js index 2c1b75d..648a5e1 100644 --- a/public/javascripts/plemp-ui.js +++ b/public/javascripts/plemp-ui.js @@ -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',