[Tickets #13370] Re: minicalendar calendarweek selection doesn't work anymore since update to horde 5.2.0

noreply at bugs.horde.org noreply at bugs.horde.org
Thu Jul 17 09:13:01 UTC 2014


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

Ticket URL: http://bugs.horde.org/ticket/13370
------------------------------------------------------------------------------
  Ticket             | 13370
  Updated By         | Jasper.Olbrich at students.uni-marburg.de
  Summary            | minicalendar calendarweek selection doesn't work
                     | anymore since update to horde 5.2.0
  Queue              | Kronolith
  Version            | FRAMEWORK_5_2
  Type               | Bug
  State              | Unconfirmed
  Priority           | 3. High
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


Jasper.Olbrich at students.uni-marburg.de (2014-07-17 09:13) wrote:

I can confirm this behavior and was able to fix this by adding  
.toLowerCase() to the tag name (which seems to be returned in upper  
case, so it can never match 'td':

                 if (tmp.tagName.toLowerCase() != 'td') {
                     tmp = tmp.up('td');
                 }

According to this
https://developer.mozilla.org/en-US/docs/Web/API/Element.tagName
the tag name is returned "as is" for XHTML and all uppercase for HTML,  
so the .toLowerCase()-method is probably bettern than checking for  
!='TD'?





More information about the bugs mailing list