From dffdff9daabc3523ce414657aaa6c5b768193a34 Mon Sep 17 00:00:00 2001 From: Jacques Le Roux Date: Tue, 18 Jan 2011 08:28:58 +0000 Subject: [PATCH] A patch from Arun Patidar "Some misc issues in ebay component." (https://issues.apache.org/jira/browse/OFBIZ-4118) - OFBIZ-4118 JS is blocking during Export Product to ebay from ebay component. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1060236 13f79535-47bb-0310-9956-ffa450edef68 --- .../ebay/webapp/ebay/find/EbayAdvancedSearch.ftl | 2 +- .../ebay/webapp/ebay/find/productsExportToEbay.ftl | 14 ++++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/specialpurpose/ebay/webapp/ebay/find/EbayAdvancedSearch.ftl b/specialpurpose/ebay/webapp/ebay/find/EbayAdvancedSearch.ftl index 61ab22c22b..fa5f0c7c96 100644 --- a/specialpurpose/ebay/webapp/ebay/find/EbayAdvancedSearch.ftl +++ b/specialpurpose/ebay/webapp/ebay/find/EbayAdvancedSearch.ftl @@ -377,7 +377,7 @@ under the License.
- ${uiLabelMap.CommonFind} + ${uiLabelMap.CommonFind} diff --git a/specialpurpose/ebay/webapp/ebay/find/productsExportToEbay.ftl b/specialpurpose/ebay/webapp/ebay/find/productsExportToEbay.ftl index 3ade47c9b6..fe91003e1a 100644 --- a/specialpurpose/ebay/webapp/ebay/find/productsExportToEbay.ftl +++ b/specialpurpose/ebay/webapp/ebay/find/productsExportToEbay.ftl @@ -30,11 +30,13 @@ under the License. function activateSubmitButton() { categ = document.forms["ProductsExportToEbay"].ebayCategory.value; - if (categ != null && (categ.substring(0, 1) == 'Y' || categ == '')) { - document.forms["ProductsExportToEbay"].submitButton.disabled = false; - } else { - document.forms["ProductsExportToEbay"].submitButton.disabled = true; - document.forms["ProductsExportToEbay"].submitButton.value = "Please select a category"; + if (document.forms["ProductsExportToEbay"].submitButton) { + if (categ != null && (categ.substring(0, 1) == 'Y' || categ == '')) { + document.forms["ProductsExportToEbay"].submitButton.disabled = false; + } else { + document.forms["ProductsExportToEbay"].submitButton.disabled = true; + document.forms["ProductsExportToEbay"].submitButton.value = "Please select a category"; + } } } @@ -57,7 +59,7 @@ under the License. - <#if hideExportOptions == "N"> + <#if hideExportOptions?has_content && hideExportOptions == "N"> ${uiLabelMap.CommonCountry}