// small changes on orders view
This commit is contained in:
+3
-3
@@ -586,8 +586,7 @@ function init()
|
|||||||
|
|
||||||
$('.edit_product_change_link').unbind('click');
|
$('.edit_product_change_link').unbind('click');
|
||||||
$('.edit_product_change_link').click(function() {
|
$('.edit_product_change_link').click(function() {
|
||||||
$('.add_product_fields').hide();
|
$('.add_product_fields, .standard_refund_fields, .order_action').hide();
|
||||||
$('.standard_refund_fields').hide();
|
|
||||||
$('.edit_product_fields').show();
|
$('.edit_product_fields').show();
|
||||||
$('.cancel_product_change_link:visible').trigger('click');
|
$('.cancel_product_change_link:visible').trigger('click');
|
||||||
closeAddProduct();
|
closeAddProduct();
|
||||||
@@ -656,6 +655,7 @@ function init()
|
|||||||
element_list.find('.edit_product_change_link').parent().show();
|
element_list.find('.edit_product_change_link').parent().show();
|
||||||
element_list.find('button.submitProductChange').hide();
|
element_list.find('button.submitProductChange').hide();
|
||||||
element_list.find('.cancel_product_change_link').hide();
|
element_list.find('.cancel_product_change_link').hide();
|
||||||
|
$('.order_action').show();
|
||||||
$('.standard_refund_fields').hide();
|
$('.standard_refund_fields').hide();
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
@@ -916,4 +916,4 @@ function checkPartialRefundProductAmount(it)
|
|||||||
{
|
{
|
||||||
if (parseInt($(it).val()) > parseInt($(it).parent().parent().find('.partialRefundProductAmount').val()))
|
if (parseInt($(it).val()) > parseInt($(it).parent().parent().find('.partialRefundProductAmount').val()))
|
||||||
$(it).val($(it).parent().parent().find('.partialRefundProductAmount').val());
|
$(it).val($(it).parent().parent().find('.partialRefundProductAmount').val());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user