|
Author: jleroux
Date: Wed Sep 29 10:10:31 2010 New Revision: 1002558 URL: http://svn.apache.org/viewvc?rev=1002558&view=rev Log: A fix in OrderShippingInfo.js for OFBIZ-3919 + some minor syntax points (not functional) Modified: ofbiz/branches/jquery/applications/order/webapp/ordermgr/images/js/OrderShippingInfo.js ofbiz/branches/jquery/framework/images/webapp/images/getDependentDropdownValues.js ofbiz/branches/jquery/framework/images/webapp/images/myportal.js ofbiz/branches/jquery/framework/images/webapp/images/selectall.js Modified: ofbiz/branches/jquery/applications/order/webapp/ordermgr/images/js/OrderShippingInfo.js URL: http://svn.apache.org/viewvc/ofbiz/branches/jquery/applications/order/webapp/ordermgr/images/js/OrderShippingInfo.js?rev=1002558&r1=1002557&r2=1002558&view=diff ============================================================================== --- ofbiz/branches/jquery/applications/order/webapp/ordermgr/images/js/OrderShippingInfo.js (original) +++ ofbiz/branches/jquery/applications/order/webapp/ordermgr/images/js/OrderShippingInfo.js Wed Sep 29 10:10:31 2010 @@ -20,12 +20,12 @@ var validateNewShippingAdd = null; jQuery(document).ready( function() { var addShippingAddress = jQuery('#addShippingAddress'); - if (addShippingAddress.length > 0) { + if (addShippingAddress.length) { // add the form validator addShippingAddress.validate(); - jQuery('#country').change( function() { - getAssociatedStateList('country', 'state', 'advice-required-stateProvinceGeoId', 'states'); + jQuery('#countryGeoId').change( function() { + getAssociatedStateList('countryGeoId', 'stateProvinceGeoId', 'advice-required-stateProvinceGeoId', 'states'); }); } }); \ No newline at end of file Modified: ofbiz/branches/jquery/framework/images/webapp/images/getDependentDropdownValues.js URL: http://svn.apache.org/viewvc/ofbiz/branches/jquery/framework/images/webapp/images/getDependentDropdownValues.js?rev=1002558&r1=1002557&r2=1002558&view=diff ============================================================================== --- ofbiz/branches/jquery/framework/images/webapp/images/getDependentDropdownValues.js (original) +++ ofbiz/branches/jquery/framework/images/webapp/images/getDependentDropdownValues.js Wed Sep 29 10:10:31 2010 @@ -88,8 +88,8 @@ function getDependentDropdownValues(requ //*** calls any service already mounted as an event function getServiceResult(request, params) { data = []; - jQuery.each(params, function (key, value) { data.add({ name: key, value: value}); } - return jQuery.post(request, data, function(result) { return result; } + jQuery.each(params, function (key, value) { data.add({ name: key, value: value}) } + return jQuery.post(request, data, function(result) { return result } } //*** checkUomConversion returns true if an UomConversion exists Modified: ofbiz/branches/jquery/framework/images/webapp/images/myportal.js URL: http://svn.apache.org/viewvc/ofbiz/branches/jquery/framework/images/webapp/images/myportal.js?rev=1002558&r1=1002557&r2=1002558&view=diff ============================================================================== --- ofbiz/branches/jquery/framework/images/webapp/images/myportal.js (original) +++ ofbiz/branches/jquery/framework/images/webapp/images/myportal.js Wed Sep 29 10:10:31 2010 @@ -60,7 +60,7 @@ function preparePortletBackgroundOrderCh // make clean array and remove all fields with empty values var dataArray = [] jQuery.each(serializedDate, function(index, value) { - if (value.length > 0) { + if (value.length) { dataArray.push(value); } }); Modified: ofbiz/branches/jquery/framework/images/webapp/images/selectall.js URL: http://svn.apache.org/viewvc/ofbiz/branches/jquery/framework/images/webapp/images/selectall.js?rev=1002558&r1=1002557&r2=1002558&view=diff ============================================================================== --- ofbiz/branches/jquery/framework/images/webapp/images/selectall.js (original) +++ ofbiz/branches/jquery/framework/images/webapp/images/selectall.js Wed Sep 29 10:10:31 2010 @@ -685,7 +685,7 @@ function submitFormDisableSubmits(form) // prevents doubleposts for <submit> inputs of type "button" or "image" function submitFormDisableButton(button) { - if (button.form.action != null && button.form.action.length > 0) { + if (button.form.action != null && button.form.action.length) { button.disabled = true; } button.className = button.className + " disabled"; |
| Free forum by Nabble | Edit this page |
