hi,
as per the attached screenshot, if you attach some ajax widget like FileField to a page that has ActiveTags, then the ActiveTag field as well as the popular tags field will be duplicated when Drupal.behaviors.tagger & Drupal.behaviors.taggerpop are called.
the following patches seem to do the trick.
//FOR active_tags.js
Drupal.behaviors.tagger = function (context) {
jQuery.each(Drupal.settings['active_tags'],function(i, v) {
if ($(v).length == 1 && !$(v).hasClass('active-tags-processed')) {
activetags_activate(v);
$(v).addClass('active-tags-processed');
}
});
}
//FOR active_tags_popular.js
Drupal.behaviors.taggerpop = function (context) {
jQuery.each(Drupal.settings['active_tags_popular'],function(i, v) {
if ($(v).length == 1 && !$(v).hasClass('active-tags-pop-processed')) {
activetags_popular_activate(v);
$(v).addClass('active-tags-pop-processed');
}
});
}
| Comment | File | Size | Author |
|---|---|---|---|
| Picture 1.png | 70.74 KB | heacu |
Comments
Comment #1
darrenmothersele commentedYes, this fixes the bug when used with ImageField etc.
Comment #2
OneTwoTait commentedWorks like a charm. Thanks. :)
Comment #3
darrenmothersele commentedmarked as tested, adding to next version.
Comment #4
Flying Drupalist commentedPlease commit?
Comment #5
entrigan commentedI second that :) this is an important enough patch to warrant a release.
Comment #6
dragonwize commentedCommitted. Look for this in 1.2 tonight.