[Tickets #1204] Category Labels Background Color Problem
bugs at bugs.horde.org
bugs at bugs.horde.org
Thu Jan 20 14:53:44 PST 2005
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/?id=1204
-----------------------------------------------------------------------
Ticket | 1204
Updated By | scott at realorganized.com
Summary | Category Labels Background Color Problem
Queue | Horde Framework Packages
State | Feedback
Priority | 2. Medium
Type | Bug
Owners |
-----------------------------------------------------------------------
scott at realorganized.com (2005-01-20 14:53) wrote:
I can get this problem to happen using Safari browser version 1.24. This
problem does not happen using Firefox browser. This leads me to believe it
is a JavaScript incompatability with Safari.
I took a look at the JavaScript and believe the problem is here:
function hex(dec)
{
if (dec == 10) return 'A';
if (dec == 11) return 'B';
if (dec == 12) return 'C';
if (dec == 13) return 'D';
if (dec == 14) return 'E';
if (dec == 15) return 'F';
if (dec == 0) return '0'; // SDS - Safari browser incorrecly returns -
instead of 0 with implicit conversion from number to string
return '' + dec;
}
When dec is 0 safari returns '-' when it should return 0. I made the above
one line change and the code works under Safari now.
More information about the bugs
mailing list