Closed (duplicate)
Project:
Feeds
Version:
6.x-1.0-alpha11
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Feb 2010 at 06:48 UTC
Updated:
17 Feb 2010 at 20:03 UTC
Jump to comment: Most recent file
Comments
Comment #1
alex_b commentedI can't confirm this. Does this happen in any browser?
Comment #2
caktux commentedHad the same issue in alpha10 using FF 3.6, Safari and Chrome... I don't think it's a browser issue..
Comment #3
sagannotcarl commentedInteresting, I was not experiencing this problem with the dev version (from Jan 29th or somewhere around there) in Firefox 3.5.7 on a Mac. It only started for me when I went to alpha11.
I haven't tried the newest dev version.
Comment #4
ManyNancy commentedSame here on the latest.
Comment #5
alex_b commentedAgain: I can't confirm this on my local setup:
* MacOS,
* PHP5.2.6,
* Feeds 1.0 alpha 11,
* using the "Feed" configuration that comes with feeds_defaults and creating a new feeds importer configuration.
I find that the 'remove' link *is* present and works in Firefox and Chrome...
sagannotcarl, ManyNancy: could you
* describe your local set up better and post a step by step walkthrough on how to reproduce the error?
* use the Firefox Firebug console and see whether any JS errors are reported?
* take a look at the DOM of the mapping page and see whether there are hidden elements (a remove link or a remove check box) that should be visible?
Thanks for your help in debugging this.
Comment #6
sagannotcarl commented* MySQL database - 5.1.39
* PHP - 5.2.12
* PHP memory limit - 128M
* PHP register globals - Disabled
* Unicode library - PHP Mbstring Extension
* Web server - Apache/2.2.14 (FreeBSD) mod_ssl/2.2.14 OpenSSL/0.9.8e DAV/2 mod_fastcgi/2.4.6
* Feeds 6.x-1.0-alpha11
* Cloning the "Feed" configuration that comes with feeds_defaults and creating a new feeds importer configuration
* No JS errors
Ahh, there is a hidden element there (see screenshot). Looks that that's the issue.
Comment #7
sagannotcarl commentedSo there is a link element there, it just doesn't have any text in it:
should be:
Comment #8
sagannotcarl commentedSo a little more info. I used firebug to put text into the a element and the it still doesn't work, not surprising but it's not quite that simple ;)
Comment #9
alex_b commented#6 - Thank you for the debugging work.
This is how the same snippet looks like on my FF 3.5.7 w/ Feeds HEAD (very similar to alpha11) http://skitch.com/alexbarth/ni3hp/edit-feed-drupal-6
This is how the same snippet looks like in Google Chrome:
http://skitch.com/alexbarth/ni34i/developer-tools-http-localhost-d6-admi...
Your assessment in #7 is correct: the Remove text in the anchor tag is missing. It seems that its not copied right from the checkbox's label:
http://skitch.com/alexbarth/ni36d/screen-shot-2010-02-16-at-11.44.27-am....
The code that is responsible for this copy can be found in feeds_ui/feeds_ui.js:
The command
$(this).children(' label').text()appears to not find "Replace", therefore you wind up with an empty anchor tag.Care to figure out why this fails on your setup and how to fix it?
Comment #10
alex_b commentedIs this your patch? #717168: Feeds UI JS doesn't select labels correctly...
Comment #11
indytechcook commentedThe HTML being output in the form is not consistant with the jquery selectors:
Here is the HTML being generated: http://skitch.com/indytechcook/ni4qs/edit-tms-project-leapfrog-dev-site.
I placed $(this).addClass('tester'); on line 55 of feed_ui.js.
You can see that there is another div between (this) and the label. Since it's not a direct child, the children() function will not work.
Why don't we just use 'Remove' instead of attempting to get the label of the checkbox? You already hard coded the class name for the remove functionality. Not likely this link is going to do anything else :)
EDIT: I did my testing in FF 3.6 and I didn't notice the 2 comments above this one...
Comment #12
indytechcook commentedAlex, that patch works. Setting this one as a duplicate since the other contains a patch.
http://drupal.org/node/717168
FYI, you could also use .find() instead of .children()
http://api.jquery.com/find/
If it matters, i'm using jquery 1.3.2