// id_warehouse is now on the order details and not on orders table
This commit is contained in:
@@ -639,4 +639,6 @@ $(document).ready(function() {
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
$('#gift').checkboxChange(function() { $('#gift_div').show('slow'); }, function() { $('#gift_div').hide('slow'); });
|
||||
});
|
||||
|
||||
@@ -740,5 +740,4 @@ $(document).ready(function() {
|
||||
// If the multishipping mode is on, check the box "I want to specify a delivery address for each products I order.".
|
||||
if (typeof(multishipping_mode) != 'undefined' && multishipping_mode)
|
||||
$('#multishipping_mode_checkbox').click()
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
@@ -224,3 +224,19 @@ function resizeAddressesBox(nameBox)
|
||||
});
|
||||
$(nameBox).height(maxHeight);
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
$.fn.checkboxChange = function(fnChecked, fnUnchecked) {
|
||||
if ($(this).attr('checked') && fnChecked)
|
||||
fnChecked.call(this);
|
||||
else if(fnUnchecked)
|
||||
fnUnchecked.call(this);
|
||||
console.log('fff');
|
||||
|
||||
if (!$(this).attr('eventCheckboxChange'))
|
||||
{
|
||||
$(this).live('change', function() { $(this).checkboxChange(fnChecked, fnUnchecked) });
|
||||
$(this).attr('eventCheckboxChange', true);
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -196,7 +196,7 @@
|
||||
{if $giftAllowed}
|
||||
<h3 class="gift_title">{l s='Gift'}</h3>
|
||||
<p class="checkbox">
|
||||
<input type="checkbox" name="gift" id="gift" value="1" {if $cart->gift == 1}checked="checked"{/if} onclick="$('#gift_div').toggle('slow');" />
|
||||
<input type="checkbox" name="gift" id="gift" value="1" {if $cart->gift == 1}checked="checked"{/if} />
|
||||
<label for="gift">{l s='I would like the order to be gift-wrapped.'}</label>
|
||||
<br />
|
||||
|
||||
|
||||
Reference in New Issue
Block a user