Closed (fixed)
Project:
BeautyTips
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Feb 2010 at 05:52 UTC
Updated:
16 Apr 2012 at 21:31 UTC
Jump to comment: Most recent file
Comments
Comment #1
kleinmp commentedI have not experienced this problem. When there is a field with no help text, then no tip shows up.
Is anyone else experiencing this error?
Comment #2
jrockowitz commentedI just noticed the same problem when using Chrome (5.0.375.70 Linux/Ubuntu).
Comment #3
kleinmp commentedThis version isn't supported anymore.
Comment #4
rooby commentedI am seeing this on the comment_body field on the comment form displayed below a node view page.
* I have 'Add beautytips js to every page' unchecked.
* I have 'Display Help link popups' checked.
* I have 'Display Text input popups' checked. They appear on the right side.
I even tried form altering the form to unset the #description for that field but it still shows the empty tooltip.
The tooltip markup is:
As a side note, it would be good if you could exclude forms by id as well as include forms by id.
Exclude is easily as useful I think.
I will open a new issue for that.
Comment #5
rooby commentedAlso, if I actually add help text to that field it still displays an empty tooltip, so it is checking the wrong thing somewhere for the description.
Comment #6
rooby commentedI have a hack workaround for those who need it:
Just add the class beautytips-module-processed to any text input you don't want beauty tips on.
Beauty tips will think it has already been processed and skip it.
Comment #7
rooby commentedThis seems to be happening for me on text areas in general.
Like the node body text area.
When I have ckeditor enabled I get no tooltip but when I click the diasable rich text link and go back to the plain text area I get the empty tooltip showing.
There is no help text for the field.
Comment #8
rooby commentedI just tried it on an almost stock drupal 7 install and the same issue occurs.
Just install beauty tips, enable for form items and go to create a new page and you get an empty tooltop when you click on the body field.
Comment #9
rooby commentedI found the problem.
For textareas the textinput.inc plugin only sets a contentSelector if the description is not empty.
This means that when there is no description the content ends up being undefined, instead of null, which is what it should be for empty tips.
Because the bt plugin expects null, not undefined, you end up with an empty tip.
Here is a patch that fixes it for me.
Comment #10
rooby commentedComment #11
kleinmp commentedI used the patch in comment #9 to make a fix for this in 7.x-2.x-dev. If people report that it's working then it will need to be fixed in 6.x-2.x-dev too.
Comment #12
kleinmp commentedI take it back. I don't think this is an issue with the 6 version since it finds the content in a different way.