In fields without a help text, an empty tip is displayed if the form is set to have beauty tips. There should be no beauty tips if there isn't any help text.

Comments

kleinmp’s picture

Status: Active » Postponed

I 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?

jrockowitz’s picture

I just noticed the same problem when using Chrome (5.0.375.70 Linux/Ubuntu).

kleinmp’s picture

Status: Postponed » Closed (won't fix)

This version isn't supported anymore.

rooby’s picture

Version: 6.x-1.1 » 7.x-2.0-beta1
Status: Closed (won't fix) » Active

I 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:

<div class="bt-wrapper" style="position: absolute; width: 275px; z-index: 9997; visibility: visible; top: 595px; left: 367px;">
<div class="bt-content" style="padding: 8px; position: absolute; width: 275px; z-index: 9999; left: 0px; top: 0px; font-size: 11px; margin-left: 15px;"></div>
<canvas width="308" height="18" style="position: absolute; z-index: 9998;"></canvas>
</div>

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.

rooby’s picture

Also, 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.

rooby’s picture

I 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.

rooby’s picture

This 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.

rooby’s picture

I 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.

rooby’s picture

Version: 7.x-2.0-beta1 » 7.x-2.x-dev
Status: Active » Needs review
StatusFileSize
new1.08 KB

I 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.

rooby’s picture

Title: Empty Tips displayed » Empty beauty tips displayed for text areas when using text input tooltips
kleinmp’s picture

I 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.

kleinmp’s picture

Status: Needs review » Fixed

I take it back. I don't think this is an issue with the 6 version since it finds the content in a different way.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.