ofbiz-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonatan Soto <seniledemen...@gmail.com>
Subject jQuery validator defaults
Date Tue, 12 Jul 2011 08:30:22 GMT
Hi all,

I want to use the uiLabelMap variable in a .js I've created in order to set
the defaults of any sort for jQuery plugins like validator. To do that I
just included this in the main-decorator (CommonScreens.xml):

<set field="layoutSettings.javaScripts[]" value="/images/defaults.js"

In this file I put the code like that:

jQuery.extend(jQuery.validator.messages, {
  required: '${uiLabelMap.EcommerceRequired}'

Of course, this is not properly rendered, so the question is: Would you put
all the javascript code in the header.ftl for example?

Thanks in advance.


Jonatan Soto

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message