Update - Update the jQuery library to version 1.5.1. A few changes were necessary for this step. I updated the jQuery flot library to the current release, because the old one doesn't work with the new jQuery version, i also updated the jsTree Plugin to make it work with the new jQuery Version.

Note in jQuery 1.5 the implementation of the ajax function has been changed.

For more Information have a look at: http://blog.jquery.com/2011/01/31/jquery-15-released/


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1082916 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sascha Rodekamp
2011-03-18 13:37:29 +00:00
parent a5d84f24c1
commit 02e1dc0cd0
6 changed files with 6 additions and 13 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ under the License.
<html>
<head>
<title>Main</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<script language="javascript" src="<@ofbizContentUrl>/images/selectall.js</@ofbizContentUrl>" type="text/javascript"></script>
<link rel='stylesheet' href='<@ofbizContentUrl>/images/maincss.css</@ofbizContentUrl>' type='text/css'>
<link rel='stylesheet' href='<@ofbizContentUrl>/images/tabstyles.css</@ofbizContentUrl>' type='text/css'>
@@ -254,7 +254,6 @@ function createUpdateCustomerAndShippingAddress() {
jQuery.ajax({
url: 'createUpdateShippingAddress',
type: 'POST',
dataType: 'json',
async: false,
data: jQuery('#shippingForm').serialize(),
success: function(json) {
@@ -288,7 +287,6 @@ function getShipOptions() {
jQuery.ajax({
url: 'getShipOptions',
type: 'POST',
dataType: 'json',
async: false,
success: function(json) {
jQuery('#shippingFormServerError').fadeOut('fast');
@@ -327,7 +325,6 @@ function setShippingOption() {
jQuery.ajax({
url: 'setShippingOption',
type: 'POST',
dataType: 'json',
async: false,
data: jQuery('#shippingOptionForm').serialize(),
success: function(json) {
@@ -374,7 +371,6 @@ function processBillingAndPayment() {
jQuery.ajax({
url: 'createUpdateBillingAndPayment',
type: 'POST',
dataType: 'json',
data: jQuery('#billingForm').serialize(),
async: false,
success: function(json) {
@@ -432,7 +428,6 @@ function addPromoCode() {
jQuery.ajax({
url: 'silentAddPromoCode',
type: 'POST',
dataType: 'json',
data: {"productPromoCodeId" : jQuery('#productPromoCode').val()},
success: function(json) {
jQuery('#cartFormServerError').fadeOut('fast');
@@ -454,7 +449,6 @@ function getProductLineItemIndex(event, productId) {
jQuery.ajax({
url: 'getShoppingCartItemIndex',
type: 'POST',
dataType: 'json',
async: false,
data: formValues,
success: function(json) {
@@ -495,7 +489,6 @@ function updateCartData(elementId, formValues, itemQty, itemIndex) {
jQuery.ajax({
url: 'cartItemQtyUpdate',
type: 'POST',
dataType: 'json',
data: formValues,
success: function(json) {
if (json.totalQuantity == 0) {
+2 -2
View File
@@ -42,7 +42,7 @@ under the License.
<set field="layoutSettings.javaScripts[]" value="/images/selectall.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/jquery-1.4.4.min.js" global="true"/>
<set field="layoutSettings.javaScripts[+0]" value="/images/jquery/jquery-1.5.1.min.js" global="true"/>
<script location="component://ecommerce/widget/EcommerceSetup.groovy"/>
@@ -251,7 +251,7 @@ under the License.
<set field="layoutSettings.javaScripts[]" value="/images/selectall.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/jquery-1.4.4.min.js" global="true"/>
<set field="layoutSettings.javaScripts[+0]" value="/images/jquery/jquery-1.5.1.min.js" global="true"/>
<script location="component://ecommerce/widget/EcommerceSetup.groovy"/>
@@ -20,7 +20,7 @@ under the License.
<#if parameters.redirect?exists>
<html>
<head>
<meta HTTP-EQUIV="REFRESH" content="0; url=${parameters.redirect}">
<meta HTTP-EQUIV="REFRESH" content="0; url=${parameters.redirect}"/>
</head>
</html>
+1 -1
View File
@@ -28,7 +28,7 @@ under the License.
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/>
<title>${(uiLabelMap.OfbizTitle)!"OFBiz, The Apache Open For Business Project"}</title>
<link rel="shortcut icon" href="/ofbiz/images/favicon.ico">
<script language="javascript" src="/images/jquery/jquery-1.4.4.min.js" type="text/javascript"></script>
<script language="javascript" src="/images/jquery/jquery-1.5.1.min.js" type="text/javascript"></script>
<script language="javascript" src="/images/fieldlookup.js" type="text/javascript"></script>
<script language="javascript" src="/images/selectall.js" type="text/javascript"></script>
<script language="javascript" src="/ofbiz/script/search.js" type="text/javascript"></script>
+1 -1
View File
@@ -49,7 +49,7 @@ under the License.
<set field="layoutSettings.javaScripts[+0]" value="/images/jquery/ui/development-bundle/ui/jquery.ui.datepicker.js" global="true"/>
<set field="initialLocale" type="String" value="${parameters.userLogin.lastLocale}" default-value="${groovy:locale.toString()}"/>
<set field="layoutSettings.javaScripts[+0]" value="/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-${initialLocale}.js" global="true"/>
<set field="layoutSettings.javaScripts[+0]" value="/images/jquery/jquery-1.4.4.min.js" global="true"/>
<set field="layoutSettings.javaScripts[+0]" value="/images/jquery/jquery-1.5.1.min.js" global="true"/>
<script location="component://webpos/widget/WebPosSetup.groovy"/>