if ($('#linkeditor-links [fb-uid="' + uid + '"]').length > 0) {
return;
}
- if (!$this.linkeditor.single && page % 2 === 1 && link.page % 2 === 0 && link.left > $this.linkeditor.pw) {
- link.page++;
- link.left -= $this.linkeditor.pw;
- }
- if (side === 'right') {
- link.page--;
- link.left = parseInt(link.left) + $this.linkeditor.pw;
+ link.left = parseFloat(link.left)
+ if (!$this.linkeditor.single) {
+ if (page % 2 === 1 && link.page % 2 === 0 && link.left > $this.linkeditor.pw) {
+ link.page++;
+ link.left -= $this.linkeditor.pw;
+ }
+ if (side === 'right' && link.page % 2 === 1) {
+ link.page--;
+ link.left += $this.linkeditor.pw;
+ }
}
+
if (link.page != page) {
return;
}
-
+ console.log(link);
$this.addLink(link, false);
});
this.updateLayers();