A patch from Ankit Jain "Update is not working in Shopping List." https://issues.apache.org/jira/browse/OFBIZ-4369

While trying to update any list item in Shopping List the Update is not working.

http://demo-trunk.ofbiz.apache.org:8080/ecommerce/control/editShoppingList




git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1158608 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jacques Le Roux
2011-08-17 10:07:31 +00:00
parent dd4d61513a
commit da31f4f21c
@@ -20,12 +20,15 @@ under the License.
<script type="text/javascript">
<!-- function to add extra info for Timestamp format -->
function TimestampSubmit(obj) {
if (obj.elements["reservStartStr"].value.length == 10) {
obj.elements["reservStart"].value = obj.elements["reservStartStr"].value + " 00:00:00.000000000";
reservStartStr = jQuery(obj).find("input[name='reservStartStr']");
val1 = reservStartStr.val();
reservStart = jQuery(obj).find("input[name='reservStart']");
if (reservStartStr.val().length == 10) {
reservStart.val(reservStartStr.val() + " 00:00:00.000000000");
} else {
obj.elements["reservStart"].value = obj.elements["reservStartStr"].value;
reservStart.val(reservStartStr.val());
}
obj.submit();
jQuery(obj).submit();
}
</script>
<br />
@@ -423,7 +426,7 @@ under the License.
<div class="tabletext"><@ofbizCurrency amount=totalPrice isoCode=currencyUomId/></div>
</td>
<td align="right">
<a href="javascript:TimestampSubmit(listform_${shoppingListItem.shoppingListItemSeqId});" class="buttontext">${uiLabelMap.CommonUpdate}</a>
<a href="#" onclick="javascript:TimestampSubmit(listform_${shoppingListItem.shoppingListItemSeqId});" class="buttontext">${uiLabelMap.CommonUpdate}</a>
<a href="<@ofbizUrl>removeFromShoppingList?shoppingListId=${shoppingListItem.shoppingListId}&amp;shoppingListItemSeqId=${shoppingListItem.shoppingListItemSeqId}</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonRemove}</a>
<#if isVirtual && productVariantAssocs?has_content>
<#assign replaceItemAction = "/replaceShoppingListItem/" + requestAttributes._CURRENT_VIEW_?if_exists>