Changeset 9655 for src/django_gheat


Ignore:
Timestamp:
Sep 3, 2011, 12:34:39 PM (13 years ago)
Author:
rick
Message:

String is just a normal '#' escaping will only be done if sent as URL or decoded as url.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/django_gheat/wlheatmap/static/heatmap_extensions.js

    r9651 r9655  
    335335     * On HEX to RGB:
    336336     * http://stackoverflow.com/questions/5798868/need-some-tips-with-how-to-convert-a-hexadecimal-color-value-to-a-rgb-one/5798900#5798900
    337      * Note that '#' comes out as '%23', so substr() starts at char 3
    338337     */
    339     colour = parseInt((colour.substr(3, 2)),16) + ',' + parseInt((colour.substr(5, 2)),16) + ',' + parseInt((colour.substr(7, 2)),16);
     338    colour = parseInt((colour.substr(1, 2)),16) + ',' + parseInt((colour.substr(3, 2)),16) + ',' + parseInt((colour.substr(5, 2)),16);
    340339
    341340    // some checks if values are correct, and adding them to parts of the link
Note: See TracChangeset for help on using the changeset viewer.