You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jspwiki.apache.org by "Alexander Rytov (JIRA)" <ji...@apache.org> on 2010/10/12 14:52:37 UTC
[jira] Created: (JSPWIKI-667) Scorebar invalid in google chrome
after search
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
Please see screenshots
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (JSPWIKI-667) Scorebar invalid in google chrome
after search
Posted by "Alexander Rytov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JSPWIKI-667?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexander Rytov updated JSPWIKI-667:
------------------------------------
Attachment: firefox.png
chrome.png
> 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.
[jira] Commented: (JSPWIKI-667) Scorebar invalid in google chrome
after search
Posted by "Dirk Frederickx (JIRA)" <ji...@apache.org>.
[ 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.