After deploying #500 on live site I've noticed that getContrastColor() here is not working. It is always returning white value and categories is not always readable...
It could be one of two problems:
getContrastColor(color) as I initialized [% var color = category.color; %], but left it as getContrastColor(category.color) :( If so it will be an easy fix.| Labels |
Added:
bug
|
||
I think it's because the Twig function is executed only once when the template is rendered, while the JS template is used after the page is rendered, so you can't use Twig functions anymore..
Sorry, I fixed this before reading the issue so I think this can be closed ;)
| Status | New | ⇒ | Closed |
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2014-09-22 14:04:11 |
I've noticed that in page, the template got 'white' right after Twig rendered page.
Now I got it. That is why you've made a bunch of JS functions ;)
Whatever was committed was pushed up.
![]()
JTracker Status Commentissues.joomla.org/tracker/jtracker/502
Easy: No
Successfull Tests: 0
Unsuccessfull Tests: 0
Last updated on 11 Oct 2014 20:00:58 GMT