Modified: ofbiz/trunk/framework/common/src/org/ofbiz/common/JsLanguageFilesMapping.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/src/org/ofbiz/common/JsLanguageFilesMapping.java?rev=1559769&r1=1559768&r2=1559769&view=diff ============================================================================== --- ofbiz/trunk/framework/common/src/org/ofbiz/common/JsLanguageFilesMapping.java (original) +++ ofbiz/trunk/framework/common/src/org/ofbiz/common/JsLanguageFilesMapping.java Mon Jan 20 16:27:09 2014 @@ -26,7 +26,7 @@ import javolution.util.FastMap; 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 @@ -201,161 +201,161 @@ public final class JsLanguageFilesMappin public static class jquery { private static Map<String, String> localeFiles = FastMap.newInstance(); - private static String defaultDateJs = "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-en.js"; + private static String defaultDateJs = "/images/jquery/ui/i18n/jquery.ui.datepicker-en.js"; static { - localeFiles.put("sq", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-sq.js"); - localeFiles.put("sq_AL", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-sq.js"); - localeFiles.put("ar", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-ar.js"); - localeFiles.put("ar_DZ", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-ar.js"); - localeFiles.put("ar_BH", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-ar.js"); - localeFiles.put("ar_EG", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-ar.js"); - localeFiles.put("ar_IQ", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-ar.js"); - localeFiles.put("ar_JO", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-ar.js"); - localeFiles.put("ar_KW", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-ar.js"); - localeFiles.put("ar_LB", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-ar.js"); - localeFiles.put("ar_LY", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-ar.js"); - localeFiles.put("ar_MA", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-ar.js"); - localeFiles.put("ar_OM", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-ar.js"); - localeFiles.put("ar_QA", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-ar.js"); - localeFiles.put("ar_SA", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-ar.js"); - localeFiles.put("ar_SD", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-ar.js"); - localeFiles.put("ar_SY", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-ar.js"); - localeFiles.put("ar_TN", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-ar.js"); - localeFiles.put("ar_AE", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-ar.js"); - localeFiles.put("ar_YE", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-ar.js"); - localeFiles.put("be", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-en.js"); - localeFiles.put("be_BY", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-en.js"); - localeFiles.put("bg", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-bg.js"); - localeFiles.put("bg_BG", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-bg.js"); - localeFiles.put("ca", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-ca.js"); - localeFiles.put("ca_ES", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-ca.js"); - localeFiles.put("zh", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-en.js"); - localeFiles.put("zh_CN", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-zh-CN.js"); - localeFiles.put("zh_HK", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-zh-HK.js"); - localeFiles.put("zh_SG", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-en.js"); - localeFiles.put("zh_TW", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-zh-TW.js"); - localeFiles.put("hr", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-hr.js"); - localeFiles.put("hr_HR", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-hr.js"); - localeFiles.put("cs", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-cs.js"); - localeFiles.put("cs_CZ", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-cs.js"); - localeFiles.put("da", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-da.js"); - localeFiles.put("da_DK", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-da.js"); - localeFiles.put("nl", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-nl.js"); - localeFiles.put("nl_BE", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-nl.js"); - localeFiles.put("nl_NL", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-nl.js"); - localeFiles.put("en", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-en.js"); - localeFiles.put("en_AU", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-en.js"); - localeFiles.put("en_CA", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-en.js"); - localeFiles.put("en_IN", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-en.js"); - localeFiles.put("en_IE", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-en.js"); - localeFiles.put("en_MT", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-en.js"); - localeFiles.put("en_NZ", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-en.js"); - localeFiles.put("en_PH", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-en.js"); - localeFiles.put("en_SG", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-en.js"); - localeFiles.put("en_ZA", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-en.js"); - localeFiles.put("en_GB", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-en.js"); - localeFiles.put("en_US", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-en.js"); - localeFiles.put("et", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-et.js"); - localeFiles.put("et_EE", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-et.js"); - localeFiles.put("fi", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-fi.js"); - localeFiles.put("fi_FI", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-fi.js"); - localeFiles.put("fr", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-fr.js"); - localeFiles.put("fr_BE", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-fr.js"); - localeFiles.put("fr_CA", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-fr.js"); - localeFiles.put("fr_FR", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-fr.js"); - localeFiles.put("fr_LU", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-fr.js"); - localeFiles.put("fr_CH", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-fr.js"); - localeFiles.put("de", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-de.js"); - localeFiles.put("de_AT", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-de.js"); - localeFiles.put("de_DE", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-de.js"); - localeFiles.put("de_LU", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-de.js"); - localeFiles.put("de_CH", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-de.js"); - localeFiles.put("el", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-el.js"); - localeFiles.put("el_CY", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-el.js"); - localeFiles.put("el_GR", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-el.js"); - localeFiles.put("iw", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-en.js"); - localeFiles.put("iw_IL", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-en.js"); - localeFiles.put("hi_IN", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-en.js"); - localeFiles.put("hu", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-hu.js"); - localeFiles.put("hu_HU", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-hu.js"); - localeFiles.put("is", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-is.js"); - localeFiles.put("is_IS", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-is.js"); - localeFiles.put("in", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-en.js"); - localeFiles.put("in_ID", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-en.js"); - localeFiles.put("ga", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-en.js"); - localeFiles.put("ga_IE", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-en.js"); - localeFiles.put("it", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-it.js"); - localeFiles.put("it_IT", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-it.js"); - localeFiles.put("it_CH", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-it.js"); - localeFiles.put("ja", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-ja.js"); - localeFiles.put("ja_JP", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-ja.js"); - localeFiles.put("ja_JP_JP", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-ja.js"); - localeFiles.put("ko", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-ko.js"); - localeFiles.put("ko_KR", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-ko.js"); - localeFiles.put("lv", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-lv.js"); - localeFiles.put("lv_LV", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-lv.js"); - localeFiles.put("lt", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-lt.js"); - localeFiles.put("lt_LT", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-lt.js"); - localeFiles.put("mk", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-en.js"); - localeFiles.put("mk_MK", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-en.js"); - localeFiles.put("ms", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-ms.js"); - localeFiles.put("ms_MY", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-ms.js"); - localeFiles.put("mt", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-en.js"); - localeFiles.put("mt_MT", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-en.js"); - localeFiles.put("no", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-no.js"); - localeFiles.put("no_NO", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-no.js"); - localeFiles.put("no_NO_NY", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-no.js"); - localeFiles.put("pl", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-pl.js"); - localeFiles.put("pl_PL", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-pl.js"); - localeFiles.put("pt", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-pt.js"); - localeFiles.put("pt_BR", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-pt.js"); - localeFiles.put("pt_PT", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-pt.js"); - localeFiles.put("ro", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-ro.js"); - localeFiles.put("ro_RO", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-ro.js"); - localeFiles.put("ru", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-ru.js"); - localeFiles.put("ru_RU", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-ru.js"); - localeFiles.put("sr", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-sr.js"); - localeFiles.put("sr_BA", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-sr.js"); - localeFiles.put("sr_ME", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-sr.js"); - localeFiles.put("sr_CS", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-sr.js"); - localeFiles.put("sr_RS", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-sr.js"); - localeFiles.put("sk", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-sk.js"); - localeFiles.put("sk_SK", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-sk.js"); - localeFiles.put("sl", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-sl.js"); - localeFiles.put("sl_SI", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-sl.js"); - localeFiles.put("es", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-es.js"); - localeFiles.put("es_AR", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-es.js"); - localeFiles.put("es_BO", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-es.js"); - localeFiles.put("es_CL", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-es.js"); - localeFiles.put("es_CO", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-es.js"); - localeFiles.put("es_CR", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-es.js"); - localeFiles.put("es_DO", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-es.js"); - localeFiles.put("es_EC", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-es.js"); - localeFiles.put("es_SV", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-es.js"); - localeFiles.put("es_GT", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-es.js"); - localeFiles.put("es_HN", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-es.js"); - localeFiles.put("es_MX", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-es.js"); - localeFiles.put("es_NI", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-es.js"); - localeFiles.put("es_PA", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-es.js"); - localeFiles.put("es_PY", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-es.js"); - localeFiles.put("es_PE", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-es.js"); - localeFiles.put("es_PR", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-es.js"); - localeFiles.put("es_ES", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-es.js"); - localeFiles.put("es_US", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-es.js"); - localeFiles.put("es_UY", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-es.js"); - localeFiles.put("es_VE", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-es.js"); - localeFiles.put("sv", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-sv.js"); - localeFiles.put("sv_SE", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-sv.js"); - localeFiles.put("th", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-th.js"); - localeFiles.put("th_TH", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-th.js"); - localeFiles.put("th_TH_TH", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-th.js"); - localeFiles.put("tr", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-tr.js"); - localeFiles.put("tr_TR", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-tr.js"); - localeFiles.put("uk", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-uk.js"); - localeFiles.put("uk_UA", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-uk.js"); - localeFiles.put("vi", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-vi.js"); - localeFiles.put("vi_VN", "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-vi.js"); + localeFiles.put("sq", "/images/jquery/ui/i18n/jquery.ui.datepicker-sq.js"); + localeFiles.put("sq_AL", "/images/jquery/ui/i18n/jquery.ui.datepicker-sq.js"); + localeFiles.put("ar", "/images/jquery/ui/i18n/jquery.ui.datepicker-ar.js"); + localeFiles.put("ar_DZ", "/images/jquery/ui/i18n/jquery.ui.datepicker-ar.js"); + localeFiles.put("ar_BH", "/images/jquery/ui/i18n/jquery.ui.datepicker-ar.js"); + localeFiles.put("ar_EG", "/images/jquery/ui/i18n/jquery.ui.datepicker-ar.js"); + localeFiles.put("ar_IQ", "/images/jquery/ui/i18n/jquery.ui.datepicker-ar.js"); + localeFiles.put("ar_JO", "/images/jquery/ui/i18n/jquery.ui.datepicker-ar.js"); + localeFiles.put("ar_KW", "/images/jquery/ui/i18n/jquery.ui.datepicker-ar.js"); + localeFiles.put("ar_LB", "/images/jquery/ui/i18n/jquery.ui.datepicker-ar.js"); + localeFiles.put("ar_LY", "/images/jquery/ui/i18n/jquery.ui.datepicker-ar.js"); + localeFiles.put("ar_MA", "/images/jquery/ui/i18n/jquery.ui.datepicker-ar.js"); + localeFiles.put("ar_OM", "/images/jquery/ui/i18n/jquery.ui.datepicker-ar.js"); + localeFiles.put("ar_QA", "/images/jquery/ui/i18n/jquery.ui.datepicker-ar.js"); + localeFiles.put("ar_SA", "/images/jquery/ui/i18n/jquery.ui.datepicker-ar.js"); + localeFiles.put("ar_SD", "/images/jquery/ui/i18n/jquery.ui.datepicker-ar.js"); + localeFiles.put("ar_SY", "/images/jquery/ui/i18n/jquery.ui.datepicker-ar.js"); + localeFiles.put("ar_TN", "/images/jquery/ui/i18n/jquery.ui.datepicker-ar.js"); + localeFiles.put("ar_AE", "/images/jquery/ui/i18n/jquery.ui.datepicker-ar.js"); + localeFiles.put("ar_YE", "/images/jquery/ui/i18n/jquery.ui.datepicker-ar.js"); + localeFiles.put("be", "/images/jquery/ui/i18n/jquery.ui.datepicker-be.js"); + localeFiles.put("be_BY", "/images/jquery/ui/i18n/jquery.ui.datepicker-be.js"); + localeFiles.put("bg", "/images/jquery/ui/i18n/jquery.ui.datepicker-bg.js"); + localeFiles.put("bg_BG", "/images/jquery/ui/i18n/jquery.ui.datepicker-bg.js"); + localeFiles.put("ca", "/images/jquery/ui/i18n/jquery.ui.datepicker-ca.js"); + localeFiles.put("ca_ES", "/images/jquery/ui/i18n/jquery.ui.datepicker-ca.js"); + localeFiles.put("zh", "/images/jquery/ui/i18n/jquery.ui.datepicker-en.js"); + localeFiles.put("zh_CN", "/images/jquery/ui/i18n/jquery.ui.datepicker-zh-CN.js"); + localeFiles.put("zh_HK", "/images/jquery/ui/i18n/jquery.ui.datepicker-zh-HK.js"); + localeFiles.put("zh_SG", "/images/jquery/ui/i18n/jquery.ui.datepicker-en.js"); + localeFiles.put("zh_TW", "/images/jquery/ui/i18n/jquery.ui.datepicker-zh-TW.js"); + localeFiles.put("hr", "/images/jquery/ui/i18n/jquery.ui.datepicker-hr.js"); + localeFiles.put("hr_HR", "/images/jquery/ui/i18n/jquery.ui.datepicker-hr.js"); + localeFiles.put("cs", "/images/jquery/ui/i18n/jquery.ui.datepicker-cs.js"); + localeFiles.put("cs_CZ", "/images/jquery/ui/i18n/jquery.ui.datepicker-cs.js"); + localeFiles.put("da", "/images/jquery/ui/i18n/jquery.ui.datepicker-da.js"); + localeFiles.put("da_DK", "/images/jquery/ui/i18n/jquery.ui.datepicker-da.js"); + localeFiles.put("nl", "/images/jquery/ui/i18n/jquery.ui.datepicker-nl.js"); + localeFiles.put("nl_BE", "/images/jquery/ui/i18n/jquery.ui.datepicker-nl.js"); + localeFiles.put("nl_NL", "/images/jquery/ui/i18n/jquery.ui.datepicker-nl.js"); + localeFiles.put("en", "/images/jquery/ui/i18n/jquery.ui.datepicker-en.js"); + localeFiles.put("en_AU", "/images/jquery/ui/i18n/jquery.ui.datepicker-en.js"); + localeFiles.put("en_CA", "/images/jquery/ui/i18n/jquery.ui.datepicker-en.js"); + localeFiles.put("en_IN", "/images/jquery/ui/i18n/jquery.ui.datepicker-en.js"); + localeFiles.put("en_IE", "/images/jquery/ui/i18n/jquery.ui.datepicker-en.js"); + localeFiles.put("en_MT", "/images/jquery/ui/i18n/jquery.ui.datepicker-en.js"); + localeFiles.put("en_NZ", "/images/jquery/ui/i18n/jquery.ui.datepicker-en.js"); + localeFiles.put("en_PH", "/images/jquery/ui/i18n/jquery.ui.datepicker-en.js"); + localeFiles.put("en_SG", "/images/jquery/ui/i18n/jquery.ui.datepicker-en.js"); + localeFiles.put("en_ZA", "/images/jquery/ui/i18n/jquery.ui.datepicker-en.js"); + localeFiles.put("en_GB", "/images/jquery/ui/i18n/jquery.ui.datepicker-en.js"); + localeFiles.put("en_US", "/images/jquery/ui/i18n/jquery.ui.datepicker-en.js"); + localeFiles.put("et", "/images/jquery/ui/i18n/jquery.ui.datepicker-et.js"); + localeFiles.put("et_EE", "/images/jquery/ui/i18n/jquery.ui.datepicker-et.js"); + localeFiles.put("fi", "/images/jquery/ui/i18n/jquery.ui.datepicker-fi.js"); + localeFiles.put("fi_FI", "/images/jquery/ui/i18n/jquery.ui.datepicker-fi.js"); + localeFiles.put("fr", "/images/jquery/ui/i18n/jquery.ui.datepicker-fr.js"); + localeFiles.put("fr_BE", "/images/jquery/ui/i18n/jquery.ui.datepicker-fr.js"); + localeFiles.put("fr_CA", "/images/jquery/ui/i18n/jquery.ui.datepicker-fr.js"); + localeFiles.put("fr_FR", "/images/jquery/ui/i18n/jquery.ui.datepicker-fr.js"); + localeFiles.put("fr_LU", "/images/jquery/ui/i18n/jquery.ui.datepicker-fr.js"); + localeFiles.put("fr_CH", "/images/jquery/ui/i18n/jquery.ui.datepicker-fr.js"); + localeFiles.put("de", "/images/jquery/ui/i18n/jquery.ui.datepicker-de.js"); + localeFiles.put("de_AT", "/images/jquery/ui/i18n/jquery.ui.datepicker-de.js"); + localeFiles.put("de_DE", "/images/jquery/ui/i18n/jquery.ui.datepicker-de.js"); + localeFiles.put("de_LU", "/images/jquery/ui/i18n/jquery.ui.datepicker-de.js"); + localeFiles.put("de_CH", "/images/jquery/ui/i18n/jquery.ui.datepicker-de.js"); + localeFiles.put("el", "/images/jquery/ui/i18n/jquery.ui.datepicker-el.js"); + localeFiles.put("el_CY", "/images/jquery/ui/i18n/jquery.ui.datepicker-el.js"); + localeFiles.put("el_GR", "/images/jquery/ui/i18n/jquery.ui.datepicker-el.js"); + localeFiles.put("iw", "/images/jquery/ui/i18n/jquery.ui.datepicker-en.js"); + localeFiles.put("iw_IL", "/images/jquery/ui/i18n/jquery.ui.datepicker-en.js"); + localeFiles.put("hi_IN", "/images/jquery/ui/i18n/jquery.ui.datepicker-hi.js"); + localeFiles.put("hu", "/images/jquery/ui/i18n/jquery.ui.datepicker-hu.js"); + localeFiles.put("hu_HU", "/images/jquery/ui/i18n/jquery.ui.datepicker-hu.js"); + localeFiles.put("is", "/images/jquery/ui/i18n/jquery.ui.datepicker-is.js"); + localeFiles.put("is_IS", "/images/jquery/ui/i18n/jquery.ui.datepicker-is.js"); + localeFiles.put("in", "/images/jquery/ui/i18n/jquery.ui.datepicker-en.js"); + localeFiles.put("in_ID", "/images/jquery/ui/i18n/jquery.ui.datepicker-en.js"); + localeFiles.put("ga", "/images/jquery/ui/i18n/jquery.ui.datepicker-en.js"); + localeFiles.put("ga_IE", "/images/jquery/ui/i18n/jquery.ui.datepicker-en.js"); + localeFiles.put("it", "/images/jquery/ui/i18n/jquery.ui.datepicker-it.js"); + localeFiles.put("it_IT", "/images/jquery/ui/i18n/jquery.ui.datepicker-it.js"); + localeFiles.put("it_CH", "/images/jquery/ui/i18n/jquery.ui.datepicker-it.js"); + localeFiles.put("ja", "/images/jquery/ui/i18n/jquery.ui.datepicker-ja.js"); + localeFiles.put("ja_JP", "/images/jquery/ui/i18n/jquery.ui.datepicker-ja.js"); + localeFiles.put("ja_JP_JP", "/images/jquery/ui/i18n/jquery.ui.datepicker-ja.js"); + localeFiles.put("ko", "/images/jquery/ui/i18n/jquery.ui.datepicker-ko.js"); + localeFiles.put("ko_KR", "/images/jquery/ui/i18n/jquery.ui.datepicker-ko.js"); + localeFiles.put("lv", "/images/jquery/ui/i18n/jquery.ui.datepicker-lv.js"); + localeFiles.put("lv_LV", "/images/jquery/ui/i18n/jquery.ui.datepicker-lv.js"); + localeFiles.put("lt", "/images/jquery/ui/i18n/jquery.ui.datepicker-lt.js"); + localeFiles.put("lt_LT", "/images/jquery/ui/i18n/jquery.ui.datepicker-lt.js"); + localeFiles.put("mk", "/images/jquery/ui/i18n/jquery.ui.datepicker-mk.js"); + localeFiles.put("mk_MK", "/images/jquery/ui/i18n/jquery.ui.datepicker-mk.js"); + localeFiles.put("ms", "/images/jquery/ui/i18n/jquery.ui.datepicker-ms.js"); + localeFiles.put("ms_MY", "/images/jquery/ui/i18n/jquery.ui.datepicker-ms.js"); + localeFiles.put("mt", "/images/jquery/ui/i18n/jquery.ui.datepicker-en.js"); + localeFiles.put("mt_MT", "/images/jquery/ui/i18n/jquery.ui.datepicker-en.js"); + localeFiles.put("no", "/images/jquery/ui/i18n/jquery.ui.datepicker-no.js"); + localeFiles.put("no_NO", "/images/jquery/ui/i18n/jquery.ui.datepicker-no.js"); + localeFiles.put("no_NO_NY", "/images/jquery/ui/i18n/jquery.ui.datepicker-no.js"); + localeFiles.put("pl", "/images/jquery/ui/i18n/jquery.ui.datepicker-pl.js"); + localeFiles.put("pl_PL", "/images/jquery/ui/i18n/jquery.ui.datepicker-pl.js"); + localeFiles.put("pt", "/images/jquery/ui/i18n/jquery.ui.datepicker-pt.js"); + localeFiles.put("pt_BR", "/images/jquery/ui/i18n/jquery.ui.datepicker-pt.js"); + localeFiles.put("pt_PT", "/images/jquery/ui/i18n/jquery.ui.datepicker-pt.js"); + localeFiles.put("ro", "/images/jquery/ui/i18n/jquery.ui.datepicker-ro.js"); + localeFiles.put("ro_RO", "/images/jquery/ui/i18n/jquery.ui.datepicker-ro.js"); + localeFiles.put("ru", "/images/jquery/ui/i18n/jquery.ui.datepicker-ru.js"); + localeFiles.put("ru_RU", "/images/jquery/ui/i18n/jquery.ui.datepicker-ru.js"); + localeFiles.put("sr", "/images/jquery/ui/i18n/jquery.ui.datepicker-sr.js"); + localeFiles.put("sr_BA", "/images/jquery/ui/i18n/jquery.ui.datepicker-sr.js"); + localeFiles.put("sr_ME", "/images/jquery/ui/i18n/jquery.ui.datepicker-sr.js"); + localeFiles.put("sr_CS", "/images/jquery/ui/i18n/jquery.ui.datepicker-sr.js"); + localeFiles.put("sr_RS", "/images/jquery/ui/i18n/jquery.ui.datepicker-sr.js"); + localeFiles.put("sk", "/images/jquery/ui/i18n/jquery.ui.datepicker-sk.js"); + localeFiles.put("sk_SK", "/images/jquery/ui/i18n/jquery.ui.datepicker-sk.js"); + localeFiles.put("sl", "/images/jquery/ui/i18n/jquery.ui.datepicker-sl.js"); + localeFiles.put("sl_SI", "/images/jquery/ui/i18n/jquery.ui.datepicker-sl.js"); + localeFiles.put("es", "/images/jquery/ui/i18n/jquery.ui.datepicker-es.js"); + localeFiles.put("es_AR", "/images/jquery/ui/i18n/jquery.ui.datepicker-es.js"); + localeFiles.put("es_BO", "/images/jquery/ui/i18n/jquery.ui.datepicker-es.js"); + localeFiles.put("es_CL", "/images/jquery/ui/i18n/jquery.ui.datepicker-es.js"); + localeFiles.put("es_CO", "/images/jquery/ui/i18n/jquery.ui.datepicker-es.js"); + localeFiles.put("es_CR", "/images/jquery/ui/i18n/jquery.ui.datepicker-es.js"); + localeFiles.put("es_DO", "/images/jquery/ui/i18n/jquery.ui.datepicker-es.js"); + localeFiles.put("es_EC", "/images/jquery/ui/i18n/jquery.ui.datepicker-es.js"); + localeFiles.put("es_SV", "/images/jquery/ui/i18n/jquery.ui.datepicker-es.js"); + localeFiles.put("es_GT", "/images/jquery/ui/i18n/jquery.ui.datepicker-es.js"); + localeFiles.put("es_HN", "/images/jquery/ui/i18n/jquery.ui.datepicker-es.js"); + localeFiles.put("es_MX", "/images/jquery/ui/i18n/jquery.ui.datepicker-es.js"); + localeFiles.put("es_NI", "/images/jquery/ui/i18n/jquery.ui.datepicker-es.js"); + localeFiles.put("es_PA", "/images/jquery/ui/i18n/jquery.ui.datepicker-es.js"); + localeFiles.put("es_PY", "/images/jquery/ui/i18n/jquery.ui.datepicker-es.js"); + localeFiles.put("es_PE", "/images/jquery/ui/i18n/jquery.ui.datepicker-es.js"); + localeFiles.put("es_PR", "/images/jquery/ui/i18n/jquery.ui.datepicker-es.js"); + localeFiles.put("es_ES", "/images/jquery/ui/i18n/jquery.ui.datepicker-es.js"); + localeFiles.put("es_US", "/images/jquery/ui/i18n/jquery.ui.datepicker-es.js"); + localeFiles.put("es_UY", "/images/jquery/ui/i18n/jquery.ui.datepicker-es.js"); + localeFiles.put("es_VE", "/images/jquery/ui/i18n/jquery.ui.datepicker-es.js"); + localeFiles.put("sv", "/images/jquery/ui/i18n/jquery.ui.datepicker-sv.js"); + localeFiles.put("sv_SE", "/images/jquery/ui/i18n/jquery.ui.datepicker-sv.js"); + localeFiles.put("th", "/images/jquery/ui/i18n/jquery.ui.datepicker-th.js"); + localeFiles.put("th_TH", "/images/jquery/ui/i18n/jquery.ui.datepicker-th.js"); + localeFiles.put("th_TH_TH", "/images/jquery/ui/i18n/jquery.ui.datepicker-th.js"); + localeFiles.put("tr", "/images/jquery/ui/i18n/jquery.ui.datepicker-tr.js"); + localeFiles.put("tr_TR", "/images/jquery/ui/i18n/jquery.ui.datepicker-tr.js"); + localeFiles.put("uk", "/images/jquery/ui/i18n/jquery.ui.datepicker-uk.js"); + localeFiles.put("uk_UA", "/images/jquery/ui/i18n/jquery.ui.datepicker-uk.js"); + localeFiles.put("vi", "/images/jquery/ui/i18n/jquery.ui.datepicker-vi.js"); + localeFiles.put("vi_VN", "/images/jquery/ui/i18n/jquery.ui.datepicker-vi.js"); } public static String getFilePath(String locale) { @@ -398,13 +398,13 @@ public final class JsLanguageFilesMappin localeFiles.put("bg_BG", "/images/jquery/plugins/validate/localization/messages_bg.js"); localeFiles.put("ca", "/images/jquery/plugins/validate/localization/messages_ca.js"); localeFiles.put("ca_ES", "/images/jquery/plugins/validate/localization/messages_ca.js"); - localeFiles.put("zh", "/images/jquery/plugins/validate/localization/messages_en.js"); - localeFiles.put("zh_CN", "/images/jquery/plugins/validate/localization/messages_cn.js"); - localeFiles.put("zh_HK", "/images/jquery/plugins/validate/localization/messages_en.js"); - localeFiles.put("zh_SG", "/images/jquery/plugins/validate/localization/messages_en.js"); - localeFiles.put("zh_TW", "/images/jquery/plugins/validate/localization/messages_tw.js"); - localeFiles.put("hr", "/images/jquery/plugins/validate/localization/messages_en.js"); - localeFiles.put("hr_HR", "/images/jquery/plugins/validate/localization/messages_en.js"); + localeFiles.put("zh", "/images/jquery/plugins/validate/localization/messages_zh.js"); + localeFiles.put("zh_CN", "/images/jquery/plugins/validate/localization/messages_zh.js"); + localeFiles.put("zh_HK", "/images/jquery/plugins/validate/localization/messages_zh.js"); + localeFiles.put("zh_SG", "/images/jquery/plugins/validate/localization/messages_zh.js"); + localeFiles.put("zh_TW", "/images/jquery/plugins/validate/localization/messages_zh_TW.js"); + localeFiles.put("hr", "/images/jquery/plugins/validate/localization/messages_hr.js"); + localeFiles.put("hr_HR", "/images/jquery/plugins/validate/localization/messages_hr.js"); localeFiles.put("cs", "/images/jquery/plugins/validate/localization/messages_cs.js"); localeFiles.put("cs_CZ", "/images/jquery/plugins/validate/localization/messages_cs.js"); localeFiles.put("da", "/images/jquery/plugins/validate/localization/messages_da.js"); @@ -424,8 +424,8 @@ public final class JsLanguageFilesMappin localeFiles.put("en_ZA", "/images/jquery/plugins/validate/localization/messages_en.js"); localeFiles.put("en_GB", "/images/jquery/plugins/validate/localization/messages_en.js"); localeFiles.put("en_US", "/images/jquery/plugins/validate/localization/messages_en.js"); - localeFiles.put("et", "/images/jquery/plugins/validate/localization/messages_en.js"); - localeFiles.put("et_EE", "/images/jquery/plugins/validate/localization/messages_en.js"); + localeFiles.put("et", "/images/jquery/plugins/validate/localization/messages_et.js"); + localeFiles.put("et_EE", "/images/jquery/plugins/validate/localization/messages_et.js"); localeFiles.put("fi", "/images/jquery/plugins/validate/localization/messages_fi.js"); localeFiles.put("fi_FI", "/images/jquery/plugins/validate/localization/messages_fi.js"); localeFiles.put("fr", "/images/jquery/plugins/validate/localization/messages_fr.js"); @@ -477,8 +477,8 @@ public final class JsLanguageFilesMappin localeFiles.put("pl", "/images/jquery/plugins/validate/localization/messages_pl.js"); localeFiles.put("pl_PL", "/images/jquery/plugins/validate/localization/messages_pl.js"); localeFiles.put("pt", "/images/jquery/plugins/validate/localization/messages_en.js"); - localeFiles.put("pt_BR", "/images/jquery/plugins/validate/localization/messages_ptbr.js"); - localeFiles.put("pt_PT", "/images/jquery/plugins/validate/localization/messages_ptpt.js"); + localeFiles.put("pt_BR", "/images/jquery/plugins/validate/localization/messages_pt_BR.js"); + localeFiles.put("pt_PT", "/images/jquery/plugins/validate/localization/messages_pt_PT.js"); localeFiles.put("ro", "/images/jquery/plugins/validate/localization/messages_ro.js"); localeFiles.put("ro_RO", "/images/jquery/plugins/validate/localization/messages_ro.js"); localeFiles.put("ru", "/images/jquery/plugins/validate/localization/messages_ru.js"); @@ -513,30 +513,30 @@ public final class JsLanguageFilesMappin localeFiles.put("es_US", "/images/jquery/plugins/validate/localization/messages_es.js"); localeFiles.put("es_UY", "/images/jquery/plugins/validate/localization/messages_es.js"); localeFiles.put("es_VE", "/images/jquery/plugins/validate/localization/messages_es.js"); - localeFiles.put("sv", "/images/jquery/plugins/validate/localization/messages_en.js"); - localeFiles.put("sv_SE", "/images/jquery/plugins/validate/localization/messages_se.js"); + localeFiles.put("sv", "/images/jquery/plugins/validate/localization/messages_sv.js"); + localeFiles.put("sv_SE", "/images/jquery/plugins/validate/localization/messages_sv.js"); localeFiles.put("th", "/images/jquery/plugins/validate/localization/messages_th.js"); localeFiles.put("th_TH", "/images/jquery/plugins/validate/localization/messages_th.js"); localeFiles.put("th_TH_TH", "/images/jquery/plugins/validate/localization/messages_th.js"); localeFiles.put("tr", "/images/jquery/plugins/validate/localization/messages_tr.js"); localeFiles.put("tr_TR", "/images/jquery/plugins/validate/localization/messages_tr.js"); - localeFiles.put("uk", "/images/jquery/plugins/validate/localization/messages_en.js"); - localeFiles.put("uk_UA", "/images/jquery/plugins/validate/localization/messages_ua.js"); + localeFiles.put("uk", "/images/jquery/plugins/validate/localization/messages_uk.js"); + localeFiles.put("uk_UA", "/images/jquery/plugins/validate/localization/messages_uk.js"); localeFiles.put("vi", "/images/jquery/plugins/validate/localization/messages_vi.js"); localeFiles.put("vi_VN", "/images/jquery/plugins/validate/localization/messages_vi.js"); } public static String getFilePath(String locale) { - if (validation.localeFiles.get(locale) == null) { - return validation.defaultValidation; + if (validation.localeFiles.containsKey(locale)) { + return validation.localeFiles.get(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/development-bundle/ui/i18n/jquery.ui.datepicker-en.js"; + private static String defaultDateTime = "/images/webapp/images/jquery/ui/i18n/jquery.ui.datepicker-en.js"; static { localeFiles.put("sq", "/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-en.js"); @@ -561,8 +561,8 @@ public final class JsLanguageFilesMappin localeFiles.put("ar_YE", "/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-en.js"); localeFiles.put("be", "/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-en.js"); localeFiles.put("be_BY", "/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-en.js"); - localeFiles.put("bg", "/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-en.js"); - localeFiles.put("bg_BG", "/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-en.js"); + localeFiles.put("bg", "/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-bg.js"); + localeFiles.put("bg_BG", "/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-bg.js"); localeFiles.put("ca", "/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-ca.js"); localeFiles.put("ca_ES", "/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-ca.js"); localeFiles.put("zh", "/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-en.js"); @@ -570,12 +570,12 @@ public final class JsLanguageFilesMappin localeFiles.put("zh_HK", "/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-zh-HK.js"); localeFiles.put("zh_SG", "/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-en.js"); localeFiles.put("zh_TW", "/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-zh-TW.js"); - localeFiles.put("hr", "/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-en.js"); - localeFiles.put("hr_HR", "/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-en.js"); + localeFiles.put("hr", "/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-hr.js"); + localeFiles.put("hr_HR", "/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-hr.js"); localeFiles.put("cs", "/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-cs.js"); localeFiles.put("cs_CZ", "/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-cs.js"); - localeFiles.put("da", "/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-en.js"); - localeFiles.put("da_DK", "/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-en.js"); + localeFiles.put("da", "/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-da.js"); + localeFiles.put("da_DK", "/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-da.js"); localeFiles.put("nl", "/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-nl.js"); localeFiles.put("nl_BE", "/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-nl.js"); localeFiles.put("nl_NL", "/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-nl.js"); @@ -654,7 +654,7 @@ public final class JsLanguageFilesMappin localeFiles.put("sr_BA", "/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-en.js"); localeFiles.put("sr_ME", "/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-en.js"); localeFiles.put("sr_CS", "/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-en.js"); - localeFiles.put("sr_RS", "/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-en.js"); + localeFiles.put("sr_RS", "/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-sr-RS.js"); localeFiles.put("sk", "/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-sk.js"); localeFiles.put("sk_SK", "/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-sk.js"); localeFiles.put("sl", "/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-en.js"); @@ -682,13 +682,13 @@ public final class JsLanguageFilesMappin localeFiles.put("es_VE", "/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-es.js"); localeFiles.put("sv", "/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-sv.js"); localeFiles.put("sv_SE", "/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-sv.js"); - localeFiles.put("th", "/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-en.js"); - localeFiles.put("th_TH", "/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-en.js"); - localeFiles.put("th_TH_TH", "/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-en.js"); + localeFiles.put("th", "/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-th.js"); + localeFiles.put("th_TH", "/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-th.js"); + localeFiles.put("th_TH_TH", "/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-th.js"); localeFiles.put("tr", "/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-tr.js"); localeFiles.put("tr_TR", "/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-tr.js"); - localeFiles.put("uk", "/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-en.js"); - localeFiles.put("uk_UA", "/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-en.js"); + localeFiles.put("uk", "/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-uk.js"); + localeFiles.put("uk_UA", "/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-uk.js"); localeFiles.put("vi", "/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-vi.js"); localeFiles.put("vi_VN", "/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-vi.js"); } Modified: ofbiz/trunk/framework/common/template/JsLanguageFilesMapping.ftl URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/template/JsLanguageFilesMapping.ftl?rev=1559769&r1=1559768&r2=1559769&view=diff ============================================================================== --- ofbiz/trunk/framework/common/template/JsLanguageFilesMapping.ftl (original) +++ ofbiz/trunk/framework/common/template/JsLanguageFilesMapping.ftl Mon Jan 20 16:27:09 2014 @@ -45,8 +45,8 @@ public final class JsLanguageFilesMappin } public static String getFilePath(String locale) { - if (datejs.localeFiles.containsKey(locale) == null) { - return datejs.localeFiles.get(locale); + if (datejs.localeFiles.containsKey(locale)) { + return datejs.localeFiles.get(locale); } return datejs.defaultDateJs; } @@ -55,7 +55,7 @@ public final class JsLanguageFilesMappin public static class jquery { private static Map<String, String> localeFiles = FastMap.newInstance(); - private static String defaultDateJs = "/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-en.js"; + private static String defaultDateJs = "/images/jquery/ui/i18n/jquery.ui.datepicker-en.js"; static { <#list jquery.keySet() as jqueryFiles> @@ -65,8 +65,8 @@ public final class JsLanguageFilesMappin } public static String getFilePath(String locale) { - if (datejs.localeFiles.containsKey(locale) == null) { - return jquery.localeFiles.get(locale); + if (datejs.localeFiles.containsKey(locale)) { + return jquery.localeFiles.get(locale); } return jquery.defaultDateJs; } @@ -85,8 +85,8 @@ public final class JsLanguageFilesMappin } public static String getFilePath(String locale) { - if (validation.localeFiles.containsKey(locale) == null) { - return validation.localeFiles.get(locale); + if (validation.localeFiles.containsKey(locale)) { + return validation.localeFiles.get(locale); } return validation.defaultValidation; } @@ -94,7 +94,7 @@ public final class JsLanguageFilesMappin public static class dateTime { private static Map<String, String> localeFiles = FastMap.newInstance(); - private static String defaultDateTime = "/images/webapp/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-en.js"; + private static String defaultDateTime = "/images/webapp/images/jquery/ui/i18n/jquery.ui.datepicker-en.js"; static { <#list dateTime.keySet() as dateTimeFiles> @@ -104,8 +104,8 @@ public final class JsLanguageFilesMappin } public static String getFilePath(String locale) { - if (dateTime.localeFiles.containsKey(locale) == null) { - return dateTime.localeFiles.get(locale); + if (dateTime.localeFiles.containsKey(locale)) { + return dateTime.localeFiles.get(locale); } return dateTime.defaultDateTime; } Modified: ofbiz/trunk/framework/common/webcommon/includes/flotCharts/Bars.ftl URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/webcommon/includes/flotCharts/Bars.ftl?rev=1559769&r1=1559768&r2=1559769&view=diff ============================================================================== --- ofbiz/trunk/framework/common/webcommon/includes/flotCharts/Bars.ftl (original) +++ ofbiz/trunk/framework/common/webcommon/includes/flotCharts/Bars.ftl Mon Jan 20 16:27:09 2014 @@ -17,7 +17,6 @@ specific language governing permissions under the License. --> <script language="javascript" type="text/javascript" src="<@ofbizContentUrl>/images/jquery/plugins/flot/excanvas.min.js</@ofbizContentUrl>"></script> -<script language="javascript" type="text/javascript" src="<@ofbizContentUrl>/images/jquery/jquery-1.8.2.min.js</@ofbizContentUrl>"></script> <script language="javascript" type="text/javascript" src="<@ofbizContentUrl>/images/jquery/plugins/flot/jquery.flot.js</@ofbizContentUrl>"></script> <div id="${chartId}Div" style="width:600px;height:300px;"></div> Modified: ofbiz/trunk/framework/common/webcommon/includes/flotCharts/Pie.ftl URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/webcommon/includes/flotCharts/Pie.ftl?rev=1559769&r1=1559768&r2=1559769&view=diff ============================================================================== --- ofbiz/trunk/framework/common/webcommon/includes/flotCharts/Pie.ftl (original) +++ ofbiz/trunk/framework/common/webcommon/includes/flotCharts/Pie.ftl Mon Jan 20 16:27:09 2014 @@ -17,7 +17,6 @@ specific language governing permissions under the License. --> <script language="javascript" type="text/javascript" src="<@ofbizContentUrl>/images/jquery/plugins/flot/excanvas.min.js</@ofbizContentUrl>"></script> -<script language="javascript" type="text/javascript" src="<@ofbizContentUrl>/images/jquery/jquery-1.8.2.min.js</@ofbizContentUrl>"></script> <script language="javascript" type="text/javascript" src="<@ofbizContentUrl>/images/jquery/plugins/flot/jquery.flot.js</@ofbizContentUrl>"></script> <script language="javascript" type="text/javascript" src="<@ofbizContentUrl>/images/jquery/plugins/flot/jquery.flot.pie.js</@ofbizContentUrl>"></script> @@ -84,4 +83,4 @@ jQuery(document).ready( function(){ }); }); -</script> \ No newline at end of file +</script> Modified: ofbiz/trunk/framework/common/webcommon/includes/lookup.ftl URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/webcommon/includes/lookup.ftl?rev=1559769&r1=1559768&r2=1559769&view=diff ============================================================================== --- ofbiz/trunk/framework/common/webcommon/includes/lookup.ftl (original) +++ ofbiz/trunk/framework/common/webcommon/includes/lookup.ftl Mon Jan 20 16:27:09 2014 @@ -34,7 +34,8 @@ under the License. if (typeof(jQuery) == 'undefined') { if (!jQueryLibLoaded) { jQueryLibLoaded = true; - document.write("<scr" + "ipt type=\"text/javascript\" src=\"<@ofbizContentUrl>/images/jquery/jquery-1.8.2.min.js</@ofbizContentUrl>\"></scr" + "ipt>"); + document.write("<scr" + "ipt type=\"text/javascript\" src=\"<@ofbizContentUrl>/images/jquery/jquery-1.10.2.min.js</@ofbizContentUrl>\"></scr" + "ipt>"); + document.write("<scr" + "ipt type=\"text/javascript\" src=\"<@ofbizContentUrl>/images/jquery/jquery-migrate-1.2.1.js</@ofbizContentUrl>\"></scr" + "ipt>"); } setTimeout("initJQuery()", 50); } Modified: ofbiz/trunk/framework/common/widget/CommonScreens.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/widget/CommonScreens.xml?rev=1559769&r1=1559768&r2=1559769&view=diff ============================================================================== --- ofbiz/trunk/framework/common/widget/CommonScreens.xml (original) +++ ofbiz/trunk/framework/common/widget/CommonScreens.xml Mon Jan 20 16:27:09 2014 @@ -143,21 +143,20 @@ under the License. <set field="layoutSettings.javaScripts[+0]" value="${groovy: org.ofbiz.common.JsLanguageFilesMapping.validation.getFilePath(initialLocaleComplete)}" global="true" /> <set field="layoutSettings.javaScripts[+0]" value="${groovy: org.ofbiz.common.JsLanguageFilesMapping.dateTime.getFilePath(initialLocaleComplete)}" global="true" /> <set field="layoutSettings.javaScripts[+0]" value="/images/jquery/plugins/asmselect/jquery.asmselect-1.0.4a-beta.js" global="true" /> - <set field="layoutSettings.javaScripts[+0]" value="/images/jquery/plugins/datetimepicker/jquery-ui-timepicker-addon-1.0.5.js" global="true" /> - <set field="layoutSettings.javaScripts[+0]" value="/images/jquery/plugins/jquery.maskedinput-1.2.2.min.js" global="true" /> - <set field="layoutSettings.javaScripts[+0]" value="/images/jquery/ui/js/jquery-ui-1.9.0.custom.min.js" global="true" /> + <set field="layoutSettings.javaScripts[+0]" value="/images/jquery/plugins/datetimepicker/jquery-ui-timepicker-addon.min-1.4.3.js" global="true" /> + <set field="layoutSettings.javaScripts[+0]" value="/images/jquery/plugins/jquery.maskedinput-1.3.1.min.js" global="true" /> + <set field="layoutSettings.javaScripts[+0]" value="/images/jquery/ui/js/jquery-ui-1.10.3.min.js" global="true" /> <set field="layoutSettings.javaScripts[+0]" value="/images/jquery/plugins/jeditable/jquery.jeditable.js" global="true" /> <set field="layoutSettings.javaScripts[+0]" value="/images/jquery/plugins/validate/jquery.validate.min.js" global="true" /> <set field="layoutSettings.javaScripts[+0]" value="/images/jquery/plugins/fjTimer/jquerytimer-min.js" global="true" /> - <set field="layoutSettings.javaScripts[+0]" value="/images/jquery/ui/development-bundle/ui/jquery.ui.datepicker.js" global="true" /> - <set field="layoutSettings.javaScripts[+0]" value="/images/jquery/jquery-1.8.2.min.js" global="true" /> + <set field="layoutSettings.javaScripts[+0]" value="/images/jquery/jquery-migrate-1.2.1.js" global="true"/> + <set field="layoutSettings.javaScripts[+0]" value="/images/jquery/jquery-1.10.2.min.js" global="true" /> <!-- jQuery CSSs --> <set field="layoutSettings.styleSheets[+0]" value="/images/jquery/plugins/asmselect/jquery.asmselect-1.0.4a-beta.css" global="true" /> <set field="layoutSettings.javaScripts[]" value="/images/OpenLayers-2.13.1.js" global="true" /> <set field="layoutSettings.javaScripts[]" value="/images/selectall.js" global="true" /> <set field="layoutSettings.javaScripts[]" value="/images/fieldlookup.js" global="true" /> - <set field="layoutSettings.javaScripts[]" value="/images/GooglemapMarkers.js" global="true" /> <set field="layoutSettings.javaScripts[]" value="/images/date/date.format-1.2.3-min.js" global="true" /> <set field="layoutSettings.javaScripts[]" value="/images/date/date.timezone-min.js" global="true" /> <set field="layoutSettings.javaScripts[]" value="/images/miscAjaxFunctions.js" global="true" /> @@ -476,20 +475,19 @@ under the License. <set field="layoutSettings.javaScripts[+0]" value="${groovy: org.ofbiz.common.JsLanguageFilesMapping.validation.getFilePath(initialLocaleComplete)}" global="true"/> <set field="layoutSettings.javaScripts[+0]" value="/images/jquery/plugins/asmselect/jquery.asmselect-1.0.4a-beta.js" global="true"/> - <set field="layoutSettings.javaScripts[+0]" value="/images/jquery/plugins/datetimepicker/jquery-ui-timepicker-addon-1.0.5.js" global="true"/> - <set field="layoutSettings.javaScripts[+0]" value="/images/jquery/ui/js/jquery-ui-1.9.0.custom.min.js" global="true"/> + <set field="layoutSettings.javaScripts[+0]" value="/images/jquery/plugins/datetimepicker/jquery-ui-timepicker-addon.min-1.4.3.js" global="true"/> + <set field="layoutSettings.javaScripts[+0]" value="/images/jquery/ui/js/jquery-ui-1.10.3.min.js" global="true"/> <set field="layoutSettings.javaScripts[+0]" value="/images/jquery/plugins/jeditable/jquery.jeditable.js" global="true"/> <set field="layoutSettings.javaScripts[+0]" value="/images/jquery/plugins/fjTimer/jquerytimer-min.js" global="true"/> <set field="layoutSettings.javaScripts[+0]" value="/images/jquery/plugins/validate/jquery.validate.min.js" global="true"/> - <set field="layoutSettings.javaScripts[+0]" value="/images/jquery/ui/development-bundle/ui/jquery.ui.datepicker.js" global="true"/> - <set field="layoutSettings.javaScripts[+0]" value="/images/jquery/jquery-1.8.2.min.js" global="true"/> + <set field="layoutSettings.javaScripts[+0]" value="/images/jquery/jquery-migrate-1.2.1.js" global="true"/> + <set field="layoutSettings.javaScripts[+0]" value="/images/jquery/jquery-1.10.2.min.js" global="true"/> <!-- jQuery CSSs --> <set field="layoutSettings.styleSheets[+0]" value="/images/jquery/plugins/asmselect/jquery.asmselect-1.0.4a-beta.css" global="true"/> <set field="layoutSettings.javaScripts[]" value="/images/OpenLayers-2.13.1.js" global="true" /> <set field="layoutSettings.javaScripts[]" value="/images/selectall.js" global="true"/> <set field="layoutSettings.javaScripts[]" value="/images/fieldlookup.js" global="true"/> - <set field="layoutSettings.javaScripts[]" value="/images/GooglemapSimple.js" global="true"/> <!-- The default (global) shortcut icon --> <set field="layoutSettings.shortcutIcon" value="/images/ofbiz.ico" global="true"/> <!-- The settings below are used for xsl-fo screens --> Added: ofbiz/trunk/framework/images/webapp/images/imagemanagement/jQueryRotate.js URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/images/webapp/images/imagemanagement/jQueryRotate.js?rev=1559769&view=auto ============================================================================== --- ofbiz/trunk/framework/images/webapp/images/imagemanagement/jQueryRotate.js (added) +++ ofbiz/trunk/framework/images/webapp/images/imagemanagement/jQueryRotate.js Mon Jan 20 16:27:09 2014 @@ -0,0 +1,339 @@ +// VERSION: 2.3 LAST UPDATE: 11.07.2013 +/* + * Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php + * + * Made by Wilq32, [hidden email], Wroclaw, Poland, 01.2009 + * Website: http://code.google.com/p/jqueryrotate/ + */ + +(function($) { + var supportedCSS,supportedCSSOrigin, styles=document.getElementsByTagName("head")[0].style,toCheck="transformProperty WebkitTransform OTransform msTransform MozTransform".split(" "); + for (var a = 0; a < toCheck.length; a++) if (styles[toCheck[a]] !== undefined) { supportedCSS = toCheck[a]; } + if (supportedCSS) { + supportedCSSOrigin = supportedCSS.replace(/[tT]ransform/,"TransformOrigin"); + if (supportedCSSOrigin[0] == "T") supportedCSSOrigin[0] = "t"; + } + + // Bad eval to preven google closure to remove it from code o_O + eval('IE = "v"=="\v"'); + + jQuery.fn.extend({ + rotate:function(parameters) + { + if (this.length===0||typeof parameters=="undefined") return; + if (typeof parameters=="number") parameters={angle:parameters}; + var returned=[]; + for (var i=0,i0=this.length;i<i0;i++) + { + var element=this.get(i); + if (!element.Wilq32 || !element.Wilq32.PhotoEffect) { + + var paramClone = $.extend(true, {}, parameters); + var newRotObject = new Wilq32.PhotoEffect(element,paramClone)._rootObj; + + returned.push($(newRotObject)); + } + else { + element.Wilq32.PhotoEffect._handleRotation(parameters); + } + } + return returned; + }, + getRotateAngle: function(){ + var ret = []; + for (var i=0,i0=this.length;i<i0;i++) + { + var element=this.get(i); + if (element.Wilq32 && element.Wilq32.PhotoEffect) { + ret[i] = element.Wilq32.PhotoEffect._angle; + } + } + return ret; + }, + stopRotate: function(){ + for (var i=0,i0=this.length;i<i0;i++) + { + var element=this.get(i); + if (element.Wilq32 && element.Wilq32.PhotoEffect) { + clearTimeout(element.Wilq32.PhotoEffect._timer); + } + } + } + }); + + // Library agnostic interface + + Wilq32=window.Wilq32||{}; + Wilq32.PhotoEffect=(function(){ + + if (supportedCSS) { + return function(img,parameters){ + img.Wilq32 = { + PhotoEffect: this + }; + + this._img = this._rootObj = this._eventObj = img; + this._handleRotation(parameters); + } + } else { + return function(img,parameters) { + this._img = img; + this._onLoadDelegate = [parameters]; + + this._rootObj=document.createElement('span'); + this._rootObj.style.display="inline-block"; + this._rootObj.Wilq32 = + { + PhotoEffect: this + }; + img.parentNode.insertBefore(this._rootObj,img); + + if (img.complete) { + this._Loader(); + } else { + var self=this; + // TODO: Remove jQuery dependency + jQuery(this._img).bind("load", function(){ self._Loader(); }); + } + } + } + })(); + + Wilq32.PhotoEffect.prototype = { + _setupParameters : function (parameters){ + this._parameters = this._parameters || {}; + if (typeof this._angle !== "number") { this._angle = 0 ; } + if (typeof parameters.angle==="number") { this._angle = parameters.angle; } + this._parameters.animateTo = (typeof parameters.animateTo === "number") ? (parameters.animateTo) : (this._angle); + + this._parameters.step = parameters.step || this._parameters.step || null; + this._parameters.easing = parameters.easing || this._parameters.easing || this._defaultEasing; + this._parameters.duration = parameters.duration || this._parameters.duration || 1000; + this._parameters.callback = parameters.callback || this._parameters.callback || this._emptyFunction; + this._parameters.center = parameters.center || this._parameters.center || ["50%","50%"]; + if (typeof this._parameters.center[0] == "string") { + this._rotationCenterX = (parseInt(this._parameters.center[0],10) / 100) * this._imgWidth * this._aspectW; + } else { + this._rotationCenterX = this._parameters.center[0]; + } + if (typeof this._parameters.center[1] == "string") { + this._rotationCenterY = (parseInt(this._parameters.center[1],10) / 100) * this._imgHeight * this._aspectH; + } else { + this._rotationCenterY = this._parameters.center[1]; + } + + if (parameters.bind && parameters.bind != this._parameters.bind) { this._BindEvents(parameters.bind); } + }, + _emptyFunction: function(){}, + _defaultEasing: function (x, t, b, c, d) { return -c * ((t=t/d-1)*t*t*t - 1) + b }, + _handleRotation : function(parameters, dontcheck){ + if (!supportedCSS && !this._img.complete && !dontcheck) { + this._onLoadDelegate.push(parameters); + return; + } + this._setupParameters(parameters); + if (this._angle==this._parameters.animateTo) { + this._rotate(this._angle); + } + else { + this._animateStart(); + } + }, + + _BindEvents:function(events){ + if (events && this._eventObj) + { + // Unbinding previous Events + if (this._parameters.bind){ + var oldEvents = this._parameters.bind; + for (var a in oldEvents) if (oldEvents.hasOwnProperty(a)) + // TODO: Remove jQuery dependency + jQuery(this._eventObj).unbind(a,oldEvents[a]); + } + + this._parameters.bind = events; + for (var a in events) if (events.hasOwnProperty(a)) + // TODO: Remove jQuery dependency + jQuery(this._eventObj).bind(a,events[a]); + } + }, + + _Loader:(function() + { + if (IE) + return function() { + var width=this._img.width; + var height=this._img.height; + this._imgWidth = width; + this._imgHeight = height; + this._img.parentNode.removeChild(this._img); + + this._vimage = this.createVMLNode('image'); + this._vimage.src=this._img.src; + this._vimage.style.height=height+"px"; + this._vimage.style.width=width+"px"; + this._vimage.style.position="absolute"; // FIXES IE PROBLEM - its only rendered if its on absolute position! + this._vimage.style.top = "0px"; + this._vimage.style.left = "0px"; + this._aspectW = this._aspectH = 1; + + /* Group minifying a small 1px precision problem when rotating object */ + this._container = this.createVMLNode('group'); + this._container.style.width=width; + this._container.style.height=height; + this._container.style.position="absolute"; + this._container.style.top="0px"; + this._container.style.left="0px"; + this._container.setAttribute('coordsize',width-1+','+(height-1)); // This -1, -1 trying to fix ugly problem with small displacement on IE + this._container.appendChild(this._vimage); + + this._rootObj.appendChild(this._container); + this._rootObj.style.position="relative"; // FIXES IE PROBLEM + this._rootObj.style.width=width+"px"; + this._rootObj.style.height=height+"px"; + this._rootObj.setAttribute('id',this._img.getAttribute('id')); + this._rootObj.className=this._img.className; + this._eventObj = this._rootObj; + var parameters; + while (parameters = this._onLoadDelegate.shift()) { + this._handleRotation(parameters, true); + } + } + else return function () { + this._rootObj.setAttribute('id',this._img.getAttribute('id')); + this._rootObj.className=this._img.className; + + this._imgWidth=this._img.naturalWidth; + this._imgHeight=this._img.naturalHeight; + var _widthMax=Math.sqrt((this._imgHeight)*(this._imgHeight) + (this._imgWidth) * (this._imgWidth)); + this._width = _widthMax * 3; + this._height = _widthMax * 3; + + this._aspectW = this._img.offsetWidth/this._img.naturalWidth; + this._aspectH = this._img.offsetHeight/this._img.naturalHeight; + + this._img.parentNode.removeChild(this._img); + + + this._canvas=document.createElement('canvas'); + this._canvas.setAttribute('width',this._width); + this._canvas.style.position="relative"; + this._canvas.style.left = -this._img.height * this._aspectW + "px"; + this._canvas.style.top = -this._img.width * this._aspectH + "px"; + this._canvas.Wilq32 = this._rootObj.Wilq32; + + this._rootObj.appendChild(this._canvas); + this._rootObj.style.width=this._img.width*this._aspectW+"px"; + this._rootObj.style.height=this._img.height*this._aspectH+"px"; + this._eventObj = this._canvas; + + this._cnv=this._canvas.getContext('2d'); + var parameters; + while (parameters = this._onLoadDelegate.shift()) { + this._handleRotation(parameters, true); + } + } + })(), + + _animateStart:function() + { + if (this._timer) { + clearTimeout(this._timer); + } + this._animateStartTime = +new Date; + this._animateStartAngle = this._angle; + this._animate(); + }, + _animate:function() + { + var actualTime = +new Date; + var checkEnd = actualTime - this._animateStartTime > this._parameters.duration; + + // TODO: Bug for animatedGif for static rotation ? (to test) + if (checkEnd && !this._parameters.animatedGif) + { + clearTimeout(this._timer); + } + else + { + if (this._canvas||this._vimage||this._img) { + var angle = this._parameters.easing(0, actualTime - this._animateStartTime, this._animateStartAngle, this._parameters.animateTo - this._animateStartAngle, this._parameters.duration); + this._rotate((~~(angle*10))/10); + } + if (this._parameters.step) { + this._parameters.step(this._angle); + } + var self = this; + this._timer = setTimeout(function() + { + self._animate.call(self); + }, 10); + } + + // To fix Bug that prevents using recursive function in callback I moved this function to back + if (this._parameters.callback && checkEnd){ + this._angle = this._parameters.animateTo; + this._rotate(this._angle); + this._parameters.callback.call(this._rootObj); + } + }, + + _rotate : (function() + { + var rad = Math.PI/180; + if (IE) + return function(angle) + { + this._angle = angle; + this._container.style.rotation=(angle%360)+"deg"; + this._vimage.style.top = -(this._rotationCenterY - this._imgHeight/2) + "px"; + this._vimage.style.left = -(this._rotationCenterX - this._imgWidth/2) + "px"; + this._container.style.top = this._rotationCenterY - this._imgHeight/2 + "px"; + this._container.style.left = this._rotationCenterX - this._imgWidth/2 + "px"; + + } + else if (supportedCSS) + return function(angle){ + this._angle = angle; + this._img.style[supportedCSS]="rotate("+(angle%360)+"deg)"; + this._img.style[supportedCSSOrigin]=this._parameters.center.join(" "); + } + else + return function(angle) + { + this._angle = angle; + angle=(angle%360)* rad; + // clear canvas + this._canvas.width = this._width;//+this._widthAdd; + this._canvas.height = this._height;//+this._heightAdd; + + // REMEMBER: all drawings are read from backwards.. so first function is translate, then rotate, then translate, translate.. + this._cnv.translate(this._imgWidth*this._aspectW,this._imgHeight*this._aspectH); // at least center image on screen + this._cnv.translate(this._rotationCenterX,this._rotationCenterY); // we move image back to its orginal + this._cnv.rotate(angle); // rotate image + this._cnv.translate(-this._rotationCenterX,-this._rotationCenterY); // move image to its center, so we can rotate around its center + this._cnv.scale(this._aspectW,this._aspectH); // SCALE - if needed ;) + this._cnv.drawImage(this._img, 0, 0); // First - we draw image + } + + })() + } + + if (IE) + { + Wilq32.PhotoEffect.prototype.createVMLNode=(function(){ + document.createStyleSheet().addRule(".rvml", "behavior:url(#default#VML)"); + try { + !document.namespaces.rvml && document.namespaces.add("rvml", "urn:schemas-microsoft-com:vml"); + return function (tagName) { + return document.createElement('<rvml:' + tagName + ' class="rvml">'); + }; + } catch (e) { + return function (tagName) { + return document.createElement('<' + tagName + ' xmlns="urn:schemas-microsoft.com:vml" class="rvml">'); + }; + } + })(); + } + +})(jQuery); Propchange: ofbiz/trunk/framework/images/webapp/images/imagemanagement/jQueryRotate.js ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/framework/images/webapp/images/imagemanagement/jQueryRotate.js ------------------------------------------------------------------------------ svn:keywords = Date Rev Author URL Id Propchange: ofbiz/trunk/framework/images/webapp/images/imagemanagement/jQueryRotate.js ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: ofbiz/trunk/framework/images/webapp/images/imagemanagement/jQueryRotateCompressed.js URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/images/webapp/images/imagemanagement/jQueryRotateCompressed.js?rev=1559769&view=auto ============================================================================== --- ofbiz/trunk/framework/images/webapp/images/imagemanagement/jQueryRotateCompressed.js (added) +++ ofbiz/trunk/framework/images/webapp/images/imagemanagement/jQueryRotateCompressed.js Mon Jan 20 16:27:09 2014 @@ -0,0 +1,22 @@ +// VERSION: 2.3 LAST UPDATE: 11.07.2013 +/* + * Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php + * + * Made by Wilq32, [hidden email], Wroclaw, Poland, 01.2009 + * Website: http://code.google.com/p/jqueryrotate/ + */ +(function(k){for(var d,f,l=document.getElementsByTagName("head")[0].style,h=["transformProperty","WebkitTransform","OTransform","msTransform","MozTransform"],g=0;g<h.length;g++)void 0!==l[h[g]]&&(d=h[g]);d&&(f=d.replace(/[tT]ransform/,"TransformOrigin"),"T"==f[0]&&(f[0]="t"));eval('IE = "v"=="\v"');jQuery.fn.extend({rotate:function(a){if(0!==this.length&&"undefined"!=typeof a){"number"==typeof a&&(a={angle:a});for(var b=[],c=0,d=this.length;c<d;c++){var e=this.get(c);if(e.Wilq32&&e.Wilq32.PhotoEffect)e.Wilq32.PhotoEffect._handleRotation(a); +else{var f=k.extend(!0,{},a),e=(new Wilq32.PhotoEffect(e,f))._rootObj;b.push(k(e))}}return b}},getRotateAngle:function(){for(var a=[],b=0,c=this.length;b<c;b++){var d=this.get(b);d.Wilq32&&d.Wilq32.PhotoEffect&&(a[b]=d.Wilq32.PhotoEffect._angle)}return a},stopRotate:function(){for(var a=0,b=this.length;a<b;a++){var c=this.get(a);c.Wilq32&&c.Wilq32.PhotoEffect&&clearTimeout(c.Wilq32.PhotoEffect._timer)}}});Wilq32=window.Wilq32||{};Wilq32.PhotoEffect=function(){return d?function(a,b){a.Wilq32={PhotoEffect:this}; +this._img=this._rootObj=this._eventObj=a;this._handleRotation(b)}:function(a,b){this._img=a;this._onLoadDelegate=[b];this._rootObj=document.createElement("span");this._rootObj.style.display="inline-block";this._rootObj.Wilq32={PhotoEffect:this};a.parentNode.insertBefore(this._rootObj,a);if(a.complete)this._Loader();else{var c=this;jQuery(this._img).bind("load",function(){c._Loader()})}}}();Wilq32.PhotoEffect.prototype={_setupParameters:function(a){this._parameters=this._parameters||{};"number"!== +typeof this._angle&&(this._angle=0);"number"===typeof a.angle&&(this._angle=a.angle);this._parameters.animateTo="number"===typeof a.animateTo?a.animateTo:this._angle;this._parameters.step=a.step||this._parameters.step||null;this._parameters.easing=a.easing||this._parameters.easing||this._defaultEasing;this._parameters.duration=a.duration||this._parameters.duration||1E3;this._parameters.callback=a.callback||this._parameters.callback||this._emptyFunction;this._parameters.center=a.center||this._parameters.center|| +["50%","50%"];this._rotationCenterX="string"==typeof this._parameters.center[0]?parseInt(this._parameters.center[0],10)/100*this._imgWidth*this._aspectW:this._parameters.center[0];this._rotationCenterY="string"==typeof this._parameters.center[1]?parseInt(this._parameters.center[1],10)/100*this._imgHeight*this._aspectH:this._parameters.center[1];a.bind&&a.bind!=this._parameters.bind&&this._BindEvents(a.bind)},_emptyFunction:function(){},_defaultEasing:function(a,b,c,d,e){return-d*((b=b/e-1)*b*b*b- +1)+c},_handleRotation:function(a,b){d||this._img.complete||b?(this._setupParameters(a),this._angle==this._parameters.animateTo?this._rotate(this._angle):this._animateStart()):this._onLoadDelegate.push(a)},_BindEvents:function(a){if(a&&this._eventObj){if(this._parameters.bind){var b=this._parameters.bind,c;for(c in b)b.hasOwnProperty(c)&&jQuery(this._eventObj).unbind(c,b[c])}this._parameters.bind=a;for(c in a)a.hasOwnProperty(c)&&jQuery(this._eventObj).bind(c,a[c])}},_Loader:function(){return IE?function(){var a= +this._img.width,b=this._img.height;this._imgWidth=a;this._imgHeight=b;this._img.parentNode.removeChild(this._img);this._vimage=this.createVMLNode("image");this._vimage.src=this._img.src;this._vimage.style.height=b+"px";this._vimage.style.width=a+"px";this._vimage.style.position="absolute";this._vimage.style.top="0px";this._vimage.style.left="0px";this._aspectW=this._aspectH=1;this._container=this.createVMLNode("group");this._container.style.width=a;this._container.style.height=b;this._container.style.position= +"absolute";this._container.style.top="0px";this._container.style.left="0px";this._container.setAttribute("coordsize",a-1+","+(b-1));this._container.appendChild(this._vimage);this._rootObj.appendChild(this._container);this._rootObj.style.position="relative";this._rootObj.style.width=a+"px";this._rootObj.style.height=b+"px";this._rootObj.setAttribute("id",this._img.getAttribute("id"));this._rootObj.className=this._img.className;for(this._eventObj=this._rootObj;a=this._onLoadDelegate.shift();)this._handleRotation(a, +!0)}:function(){this._rootObj.setAttribute("id",this._img.getAttribute("id"));this._rootObj.className=this._img.className;this._imgWidth=this._img.naturalWidth;this._imgHeight=this._img.naturalHeight;var a=Math.sqrt(this._imgHeight*this._imgHeight+this._imgWidth*this._imgWidth);this._width=3*a;this._height=3*a;this._aspectW=this._img.offsetWidth/this._img.naturalWidth;this._aspectH=this._img.offsetHeight/this._img.naturalHeight;this._img.parentNode.removeChild(this._img);this._canvas=document.createElement("canvas"); +this._canvas.setAttribute("width",this._width);this._canvas.style.position="relative";this._canvas.style.left=-this._img.height*this._aspectW+"px";this._canvas.style.top=-this._img.width*this._aspectH+"px";this._canvas.Wilq32=this._rootObj.Wilq32;this._rootObj.appendChild(this._canvas);this._rootObj.style.width=this._img.width*this._aspectW+"px";this._rootObj.style.height=this._img.height*this._aspectH+"px";this._eventObj=this._canvas;for(this._cnv=this._canvas.getContext("2d");a=this._onLoadDelegate.shift();)this._handleRotation(a, +!0)}}(),_animateStart:function(){this._timer&&clearTimeout(this._timer);this._animateStartTime=+new Date;this._animateStartAngle=this._angle;this._animate()},_animate:function(){var a=+new Date,b=a-this._animateStartTime>this._parameters.duration;if(b&&!this._parameters.animatedGif)clearTimeout(this._timer);else{if(this._canvas||this._vimage||this._img)a=this._parameters.easing(0,a-this._animateStartTime,this._animateStartAngle,this._parameters.animateTo-this._animateStartAngle,this._parameters.duration), +this._rotate(~~(10*a)/10);this._parameters.step&&this._parameters.step(this._angle);var c=this;this._timer=setTimeout(function(){c._animate.call(c)},10)}this._parameters.callback&&b&&(this._angle=this._parameters.animateTo,this._rotate(this._angle),this._parameters.callback.call(this._rootObj))},_rotate:function(){var a=Math.PI/180;return IE?function(a){this._angle=a;this._container.style.rotation=a%360+"deg";this._vimage.style.top=-(this._rotationCenterY-this._imgHeight/2)+"px";this._vimage.style.left= +-(this._rotationCenterX-this._imgWidth/2)+"px";this._container.style.top=this._rotationCenterY-this._imgHeight/2+"px";this._container.style.left=this._rotationCenterX-this._imgWidth/2+"px"}:d?function(a){this._angle=a;this._img.style[d]="rotate("+a%360+"deg)";this._img.style[f]=this._parameters.center.join(" ")}:function(b){this._angle=b;b=b%360*a;this._canvas.width=this._width;this._canvas.height=this._height;this._cnv.translate(this._imgWidth*this._aspectW,this._imgHeight*this._aspectH);this._cnv.translate(this._rotationCenterX, +this._rotationCenterY);this._cnv.rotate(b);this._cnv.translate(-this._rotationCenterX,-this._rotationCenterY);this._cnv.scale(this._aspectW,this._aspectH);this._cnv.drawImage(this._img,0,0)}}()};IE&&(Wilq32.PhotoEffect.prototype.createVMLNode=function(){document.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)");try{return!document.namespaces.rvml&&document.namespaces.add("rvml","urn:schemas-microsoft-com:vml"),function(a){return document.createElement("<rvml:"+a+' class="rvml">')}}catch(a){return function(a){return document.createElement("<"+ +a+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}}())})(jQuery); Propchange: ofbiz/trunk/framework/images/webapp/images/imagemanagement/jQueryRotateCompressed.js ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/framework/images/webapp/images/imagemanagement/jQueryRotateCompressed.js ------------------------------------------------------------------------------ svn:keywords = Date Rev Author URL Id Propchange: ofbiz/trunk/framework/images/webapp/images/imagemanagement/jQueryRotateCompressed.js ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: ofbiz/trunk/framework/images/webapp/images/imagemanagement/jquery.Jcrop.css URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/images/webapp/images/imagemanagement/jquery.Jcrop.css?rev=1559769&view=auto ============================================================================== --- ofbiz/trunk/framework/images/webapp/images/imagemanagement/jquery.Jcrop.css (added) +++ ofbiz/trunk/framework/images/webapp/images/imagemanagement/jquery.Jcrop.css Mon Jan 20 16:27:09 2014 @@ -0,0 +1,39 @@ +/* Fixes issue here http://code.google.com/p/jcrop/issues/detail?id=1 */ +.jcrop-holder { text-align: left; } + +.jcrop-vline, .jcrop-hline +{ + font-size: 0; + position: absolute; + background: white url('Jcrop.gif') top left repeat; +} +.jcrop-vline { height: 100%; width: 1px !important; } +.jcrop-hline { width: 100%; height: 1px !important; } +.jcrop-handle { + font-size: 1px; + width: 7px !important; + height: 7px !important; + border: 1px #eee solid; + background-color: #333; + *width: 9px; + *height: 9px; +} + +.jcrop-tracker { width: 100%; height: 100%; } + +.custom .jcrop-vline, +.custom .jcrop-hline +{ + background: yellow; +} +.custom .jcrop-handle +{ + border-color: black; + background-color: #C7BB00; + -moz-border-radius: 3px; + -webkit-border-radius: 3px; +} + +.cropbox { + width: 30% !important; +} Propchange: ofbiz/trunk/framework/images/webapp/images/imagemanagement/jquery.Jcrop.css ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/framework/images/webapp/images/imagemanagement/jquery.Jcrop.css ------------------------------------------------------------------------------ svn:keywords = Date Rev Author URL Id Propchange: ofbiz/trunk/framework/images/webapp/images/imagemanagement/jquery.Jcrop.css ------------------------------------------------------------------------------ svn:mime-type = text/css |
Free forum by Nabble | Edit this page |