bugfix
This commit is contained in:
parent
f3482be14d
commit
a546628a16
1 changed files with 4 additions and 5 deletions
|
|
@ -150,12 +150,11 @@
|
||||||
// Events
|
// Events
|
||||||
$.each(json.events, function(i, event) {
|
$.each(json.events, function(i, event) {
|
||||||
var group = svg.group();
|
var group = svg.group();
|
||||||
svg.image("/img/lightbulb.svg")
|
group.image("/img/lightbulb.svg")
|
||||||
.addClass("draggable").addClass("event")
|
.addClass("draggable").addClass("event")
|
||||||
device.x(event.x)
|
.x(event.x).y(event.y)
|
||||||
device.y(event.y)
|
.attr("device-id", event.id)
|
||||||
device.attr("device-id", event.id)
|
group.title(event.name);
|
||||||
device.title(event.name);
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue