You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Jacques Le Roux (JIRA)" <ji...@apache.org> on 2015/08/30 11:37:45 UTC

[jira] [Comment Edited] (OFBIZ-6589) popup calendar does not work in all themes

    [ https://issues.apache.org/jira/browse/OFBIZ-6589?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14721461#comment-14721461 ] 

Jacques Le Roux edited comment on OFBIZ-6589 at 8/30/15 9:37 AM:
-----------------------------------------------------------------

This is the line in question:
{code}
$P._toString=$P.toString;$P.toString=function(format){var x=this;if(format&&format.length==1){var c=$C.formatPatterns;x.t=x.toString;switch(format){case"d":return x.t(c.shortDate);case"D":return x.t(c.longDate);case"F":return x.t(c.fullDateTime);case"m":return x.t(c.monthDay);case"r":return x.t(c.rfc1123);case"s":return x.t(c.sortableDateTime);case"t":return x.t(c.shortTime);case"T":return x.t(c.longTime);case"u":return x.t(c.universalSortableDateTime);case"y":return x.t(c.yearMonth);}}
{code}


was (Author: jacques.le.roux):
This is the line in question:
{code}
var ord=function(n){switch(n*1){case 1:case 21:case 31:return"st";case 2:case 22:return"nd";case 3:case 23:return"rd";default:return"th";}};return format?format.replace(/(\\)?(dd?d?d?|MM?M?M?|yy?y?y?|hh?|HH?|mm?|ss?|tt?|S)/g,function(m){if(m.charAt(0)==="\\"){return m.replace("\\","");}
{code}

> popup calendar does not work in all themes
> ------------------------------------------
>
>                 Key: OFBIZ-6589
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-6589
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: Trunk
>            Reporter: Wai
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)