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
This commit is contained in:
Jacques Le Roux
2011-01-18 08:28:58 +00:00
parent 09029298c4
commit dffdff9daa
2 changed files with 9 additions and 7 deletions
@@ -377,7 +377,7 @@ under the License.
<tr>
<td align="center" colspan="2">
<hr />
<a href="javascript:submit(document.getElementById('advToKeywordSearchform'));" class="buttontext">${uiLabelMap.CommonFind}</a>
<a href="javascript:submit('advToKeywordSearchform');" class="buttontext">${uiLabelMap.CommonFind}</a>
</td>
</tr>
</table>
@@ -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";
}
}
}
</script>
@@ -57,7 +59,7 @@ under the License.
</select>
</td>
</tr>
<#if hideExportOptions == "N">
<#if hideExportOptions?has_content && hideExportOptions == "N">
<tr>
<td align="right" class="label">${uiLabelMap.CommonCountry}</td>
<td>&nbsp;</td>