You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2014/11/22 23:48:45 UTC
svn commit: r1641131 -
/ofbiz/trunk/framework/widget/templates/htmlFormMacroLibrary.ftl
Author: jleroux
Date: Sat Nov 22 22:48:44 2014
New Revision: 1641131
URL: http://svn.apache.org/r1641131
Log:
A patch from Gareth Carter for "jQuery datetimepicker popup time value is not set correctly from an existing value" https://issues.apache.org/jira/browse/OFBIZ-5883
Modified:
ofbiz/trunk/framework/widget/templates/htmlFormMacroLibrary.ftl
Modified: ofbiz/trunk/framework/widget/templates/htmlFormMacroLibrary.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/templates/htmlFormMacroLibrary.ftl?rev=1641131&r1=1641130&r2=1641131&view=diff
==============================================================================
--- ofbiz/trunk/framework/widget/templates/htmlFormMacroLibrary.ftl (original)
+++ ofbiz/trunk/framework/widget/templates/htmlFormMacroLibrary.ftl Sat Nov 22 22:48:44 2014
@@ -129,6 +129,7 @@ under the License.
<#-- The JS date parser doesn't understand the dot before ms in the date/time string. The ms here should be always 0 -->
if (initDate.indexOf('.') != -1) {
initDate = initDate.substring(0, initDate.indexOf('.'));
+ jQuery("#${id}").val(initDate);
}
var ofbizTime = "<#if shortDateInput?? && shortDateInput>yyyy-MM-dd<#else>yyyy-MM-dd HH:mm:ss</#if>";
var dateObj = Date.parseExact(initDate, ofbizTime);