[Tickets #7831] Re: Special folder display with custom images broken in DIMP

bugs at horde.org bugs at horde.org
Sat Feb 7 21:01:36 UTC 2009


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/7831
------------------------------------------------------------------------------
  Ticket             | 7831
  Updated By         | Michael Slusarz <slusarz at horde.org>
  Summary            | Special folder display with custom images broken in
                     | DIMP
  Queue              | DIMP
  Version            | HEAD
  Type               | Bug
-State              | Assigned
+State              | Feedback
  Priority           | 1. Low
  Milestone          |
  Patch              |
  Owners             | Michael Slusarz
------------------------------------------------------------------------------


Michael Slusarz <slusarz at horde.org> (2009-02-07 16:01) wrote:

> Works fine! I had to exchange the style name 'background-image'
> against 'backgroundImage' in dimp/js/DimpBase.js though.

That is not correct.  From prototypejs API docs:

setStyle(element, styles) -> HTMLElementModifies element’s CSS style  
properties. Styles are passed as a hash of property-value pairs in  
which the properties are specified in their **camelized** form.

This is because this code:
{ background-image: foo }

isn't valid javascript (you can't have dashes in Object property names).





More information about the bugs mailing list