Files
ofbiz-framework/framework/common/template/JsLanguageFilesMapping.ftl
T
Jacques Le Roux 747a4a3154 This is a major update of jQuery and related, it contains:
jquery-1.8.2 to jquery-1.10.2 which implies using jquery-migrate-1.2.1 for plugins compatiblities
    jquery-ui-timepicker-addon-1.0.5 to jquery-ui-timepicker-addon-1.4.3 (using min now, better i18n)
    jquery-ui-1.9.0 to jquery-ui-1.10.3
    removes jquery.ui.datepicker.js now integrated in jquery.ui
    jquery.hotkeys-0.7.9 to jquery.hotkeys-0.8
    jquery.maskedinput-1.2.2 to jquery.maskedinput-1.3.1
    jquery.validate 1.10.0 to 1.11.1 
        I never realised how much efforts have been put in this plugin!  
        I fixed an issue in JsLanguageFilesMapping generation
        I removed the messages_ptbr.js and messages_ptpt.js files and the related conundrum in JsLanguageFileMappingCreator.java
        untested, found not use cases OOTB
    jquery.jcarousel ?(2006) to 0.3.0 (2013)
        untested, found not use cases OOTB
    jquery.flot 0.7 to 0.8.2 (lot of changes, still works)
        removes useless flotpie.ftl 
        removes empty flotr folder
    jquery.mobile-1.1.0-rc.1 to jquery.mobile-1.4.0
        untested, found not use cases OOTB
    jquery.cookie to jquery.cookie-1.4.0    


Removes all useless/redundant js files (not only jQuery unused old versions)
    notably removes all under images/jquery/ui/development-bundle/ui
    removes now useless GooglemapMarkers.js and GooglemapSimple.js

Flat Grey application.js
    moves jQuery(document).ready(function() at bottom (spotted in Chrome console) 
    
css
    I did not find much issues, I spotted the title bar of the lookups, but got it fixed after some efforts.    

Issues:
    Imagemanagement:  I got issues while testing, actually I'm not quite qure how it works, even in stable demo. It should be validated again. I commit nevertheless my changes:
        moves js part from product to images component
        removes useless calls to js files (mostly in imagemanagement, but not only)
        renames jquery.min.js to sizzle.min.js. 
        Inside sizzle.min.js, updates the Dojo part to v1.10.17-pre and removes the jQuery part
        changes to use ofbizContentUrl macro for generating js calls
        jquery.rotate.js NOT! It's jQueryRotateCompressed.js http://markmail.org/message/dit3dlh3ph4jnenp
        Got ERROR 22001: A truncation error was encountered trying to shrink VARCHAR 'D:\projectsASF\ofbizClean\framework\images\webapp\images\pro&' to length 100.  I opened OFBIZ-5501 for that
    I tried to update jstree  to jstree 3 but gave up. I let the jquery.jstree-3.0.0-beta3 files in place in case someone would give it a chance...
    
Not related but while a it:
    removes <!--flot example requests--> from birt controller (moved recently to example component)
    
    

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1559769 13f79535-47bb-0310-9956-ffa450edef68
2014-01-20 16:27:09 +00:00

114 lines
4.4 KiB
Plaintext

/*******************************************************************************
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*******************************************************************************/
<#-- Use the createJsLanguageFileMapping service to create or update the JsLanguageFilesMapping.java. You will still need to compile thereafter -->
package org.ofbiz.common;
import java.util.Map;
import javolution.util.FastMap;
<#-- The comment in UPPERCASE below is dynamically put in the JsLanguageFilesMapping.java generated file, so please keep it... -->
public final class JsLanguageFilesMapping {
// DO NOT EDIT THIS FILE! THIS IS AUTO GENERATED AND WILL GET WRITTEN OVER PERIODICALLY WHEN THE DATA CHANGE
// Rather use the createJsLanguageFileMapping service to create or update it. You will still need to compile thereafter
public static class datejs {
private static Map<String, String> localeFiles = FastMap.newInstance();
private static String defaultDateJs = "/images/jquery/plugins/datejs/date-en-US.js";
static {
<#list datejs.keySet() as dateJsFiles>
<#assign filePath = datejs.get(dateJsFiles) />
localeFiles.put("${dateJsFiles}", "${filePath}");
</#list>
}
public static String getFilePath(String locale) {
if (datejs.localeFiles.containsKey(locale)) {
return datejs.localeFiles.get(locale);
}
return datejs.defaultDateJs;
}
}
public static class jquery {
private static Map<String, String> localeFiles = FastMap.newInstance();
private static String defaultDateJs = "/images/jquery/ui/i18n/jquery.ui.datepicker-en.js";
static {
<#list jquery.keySet() as jqueryFiles>
<#assign filePath = jquery.get(jqueryFiles) />
localeFiles.put("${jqueryFiles}", "${filePath}");
</#list>
}
public static String getFilePath(String locale) {
if (datejs.localeFiles.containsKey(locale)) {
return jquery.localeFiles.get(locale);
}
return jquery.defaultDateJs;
}
}
public static class validation {
private static Map<String, String> localeFiles = FastMap.newInstance();
private static String defaultValidation = "/images/webapp/images/jquery/plugins/validate/localization/messages_en.js";
static {
<#list validation.keySet() as validationFiles>
<#assign filePath = validation.get(validationFiles) />
localeFiles.put("${validationFiles}", "${filePath}");
</#list>
}
public static String getFilePath(String locale) {
if (validation.localeFiles.containsKey(locale)) {
return validation.localeFiles.get(locale);
}
return validation.defaultValidation;
}
}
public static class dateTime {
private static Map<String, String> localeFiles = FastMap.newInstance();
private static String defaultDateTime = "/images/webapp/images/jquery/ui/i18n/jquery.ui.datepicker-en.js";
static {
<#list dateTime.keySet() as dateTimeFiles>
<#assign filePath = dateTime.get(dateTimeFiles)! />
localeFiles.put("${dateTimeFiles}", "${filePath}");
</#list>
}
public static String getFilePath(String locale) {
if (dateTime.localeFiles.containsKey(locale)) {
return dateTime.localeFiles.get(locale);
}
return dateTime.defaultDateTime;
}
}
}