Active
Project:
Community Tags
Version:
5.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
11 May 2007 at 13:52 UTC
Updated:
15 Apr 2018 at 19:11 UTC
When I click on the "add" button for the tag input form, nothing happens. Firebug shows this error:
jquery.js (line 2)
o.tags.push is not a function
addHandler()community_tags.js (line 53)
e(click clientX=0, clientY=0)jquery.js (line 2)
[Break on this error] o.tags.push(textfield[0].value);
I've tried the form as both a block and inline, and I get the same problem either way.
Comments
Comment #1
joshk commentedI get this as well with FF2.0.4. It appears that the empty array being set in the settings isn't picked up as an array, and thus doesn't have the .push method.
Comment #2
joshk commentedConfirming the above, placing this bit of code before the
o.tags.push(textfield[0].value);stops that particular bug:if(!o.tags[0]) {
o.tags = new Array;
}
I can make a patch for this, but I suspect there's probably a "better" solution out there.
Comment #3
KentBye commentedI receive the same error in FireBug, and the fix from joshk makes it go away. I'm not sure what a more elegant solution would be, but I'd say go ahead and roll a patch for it anyway.