You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jspwiki.apache.org by "Dirk Frederickx (JIRA)" <ji...@apache.org> on 2010/10/13 19:16:31 UTC

[jira] Commented: (JSPWIKI-667) Scorebar invalid in google chrome after search

    [ https://issues.apache.org/jira/browse/JSPWIKI-667?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12920667#action_12920667 ] 

Dirk Frederickx commented on JSPWIKI-667:
-----------------------------------------


CHROME apparently has a buggy implementation of Date.parse().
This function is used to parse the data of eg graph-bars in order to apply the proper bar-sizing algorithms.

CHROME converts Date.parse(20) into a valid result.  (probably interpreted as milliseconds)
While other browsers will return NaN.

Here is an easy workaround fix. (I will update svn shortly)

{noformat}
	parseBarData: function(nodes, lbound, size){

                ....

		nodes.each(function(n,i){
                        .....
			/* chrome accepts numbers as valid Dates !! */
			date &= !isNaN(Date.parse(s)) && s.test(/[^\d]/);
		});
{noformat}



> Scorebar invalid in google chrome after search
> ----------------------------------------------
>
>                 Key: JSPWIKI-667
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-667
>             Project: JSPWiki
>          Issue Type: Bug
>    Affects Versions: 2.8.4
>            Reporter: Alexander Rytov
>         Attachments: chrome.png, firefox.png
>
>
> Please see screenshots

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.