Skip to content

Commit

Permalink
Fix an issue where prefilled tags wouldn't show up when
Browse files Browse the repository at this point in the history
added to a detached dom element.

Fixes #214
  • Loading branch information
hhaidar committed Nov 26, 2014
1 parent da38abf commit 8acecdd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tagmanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,11 @@
$(opts.tagsContainer).append($el);
} else {
if (tlid.length > 1) {
lastTagObj = $("#" + $self.data("tm_rndid") + "_" + tlid[tlid.length - 2]);
lastTagObj = $self.siblings("#" + $self.data("tm_rndid") + "_" + tlid[tlid.length - 2]);
lastTagObj.after($el);
} else {
$self.before($el);
}
}
}

$el.find("#" + newTagRemoveId).on("click", $self, function(e) {
Expand Down

0 comments on commit 8acecdd

Please sign in to comment.