Author: jleroux
Date: Fri Dec 24 11:59:54 2010
New Revision: 1052492
URL:
http://svn.apache.org/viewvc?rev=1052492&view=revLog:
Fix "Bug In Jquery Integration - js File Not Found" (
https://issues.apache.org/jira/browse/OFBIZ-4060) - OFBIZ-4060
We don't care for missing jquery.ui.datepicker i18n files, since "en" as default is handled internally. If people want a missing translation they have to add the file
Modified:
ofbiz/trunk/framework/base/src/org/ofbiz/base/location/ComponentLocationResolver.java
Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/location/ComponentLocationResolver.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/location/ComponentLocationResolver.java?rev=1052492&r1=1052491&r2=1052492&view=diff==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/location/ComponentLocationResolver.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/location/ComponentLocationResolver.java Fri Dec 24 11:59:54 2010
@@ -39,10 +39,9 @@ public class ComponentLocationResolver i
StringBuffer baseLocation = ComponentLocationResolver.getBaseLocation(location);
URL fileUrl = UtilURL.fromFilename(baseLocation.toString());
- if (fileUrl == null) {
+ if (fileUrl == null && location.indexOf("jquery.ui.datepicker") == -1) { // We don't care for missing jquery.ui.datepicker i18n files, since "en" as default is handled internally. If people want a missing translation they have to add the file
Debug.logWarning("Unable to get file URL for component location; expanded location was [" + baseLocation + "], original location was [" + location + "]", module);
}
-
return fileUrl;
}