Fixed id attribute retrieval due to refactoring in 5b3edc5
This commit is contained in:
parent
9e0198cd03
commit
6300da2881
|
@ -12,16 +12,15 @@ $(document).ready(function() {
|
||||||
// The plempable jQuery plugin containing most of the Plemp! UI
|
// The plempable jQuery plugin containing most of the Plemp! UI
|
||||||
// functionality.
|
// functionality.
|
||||||
$.fn.plempable = function(data) {
|
$.fn.plempable = function(data) {
|
||||||
console.log(data);
|
|
||||||
this.draggable({ stack: ".draggable",
|
this.draggable({ stack: ".draggable",
|
||||||
containment: "window",
|
containment: "window",
|
||||||
stop: update_drag_info })
|
stop: update_drag_info })
|
||||||
.hover(function() { $(this).find(".comments").fadeIn(); },
|
.hover(function() { $(this).find(".comments").fadeIn(); },
|
||||||
function() { $(this).find(".comments").fadeOut(); });
|
function() { $(this).find(".comments").fadeOut(); });
|
||||||
this.find(".delete").click({ id: this.id,
|
this.find(".delete").click({ id: this.attr("id"),
|
||||||
element: this },
|
element: this },
|
||||||
delete_draggable);
|
delete_draggable);
|
||||||
this.find(".title").editable('draggables/' + this.id,
|
this.find(".title").editable('draggables/' + this.attr("id"),
|
||||||
{ tooltip: "Click to edit…",
|
{ tooltip: "Click to edit…",
|
||||||
name: 'title',
|
name: 'title',
|
||||||
submit: 'OK',
|
submit: 'OK',
|
||||||
|
|
Reference in a new issue