kmendes/Jquery-Photo-Tag — Issue #7: showAddTagLinks option have no effect
Author: vogtm
Created: 2012-02-28 09:03:11+00:00
State: open

Hey, thank you for this great plug in.
I may have found an issue.
There is no use of the showAddTagLinks option.

I belive that the wrapImage function is missing an if clause:

if (options.showAddTagLinks) {
if (!options.externalAddTagLinks.bind)
$('#' + options.imageWrapBox.controlPaneIdPrefix + image_id).append(createAddTagLink(image, image_id));
else {
var externalAddLinks = $(options.externalAddTagLinks.selector);
externalAddLinks.each(function () {
registerEventsForAddTagLink(this, image, image_id);
});
}
}

greeting Matthias