Closed (fixed)
Project:
Popups API (Ajax Dialogs) [D7]
Version:
6.x-1.1-rc1
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
22 Oct 2008 at 16:23 UTC
Updated:
5 Nov 2008 at 21:24 UTC
On line 457:
if (data.messages) {
Does not always return true when 'messages' is a string, causing a blank lightbox to be displayed instead of the value of messages. For an example, enable popups on the signup form (I will provide a module to enable this in the coming days - my first ever module!)
if (data.messages.length > 0) { will return the desired result
Line 492 is also afflicted, replace with:
if (!data.messages.length) {
Comments
Comment #1
lowkee commentedBug still active as of RC1
Comment #2
starbow commentedThanks.
I was just realizing that javascript doesn't consider a string to be true. I got spoiled by perl/php.
This will be fixed in RC2.
Comment #3
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.