Index: branches/1.0.x/checkout.tpl
===================================================================
diff -u -r14814 -r14817
--- branches/1.0.x/checkout.tpl (.../checkout.tpl) (revision 14814)
+++ branches/1.0.x/checkout.tpl (.../checkout.tpl) (revision 14817)
@@ -188,14 +188,17 @@
$( FormManager.getField('ord', 'Shipping' + $field) ).change(
function ($e) {
- if ( $me.isAddressValid('Shipping') ) {
- $me.updateOrder(
- 'elements/ajax/shipping_type',
- function ($data) {
- $('#shipping-type-container').html($data);
- }
- );
+ if ( !$me.isAddressValid('Shipping') ) {
+ $('select', '#shipping-type-container').empty().append('');
+ return ;
}
+
+ $me.updateOrder(
+ 'elements/ajax/shipping_type',
+ function ($data) {
+ $('#shipping-type-container').html($data);
+ }
+ );
}
);
}
Index: branches/1.0.x/elements/ajax/shipping_type.tpl
===================================================================
diff -u -r14814 -r14817
--- branches/1.0.x/elements/ajax/shipping_type.tpl (.../shipping_type.tpl) (revision 14814)
+++ branches/1.0.x/elements/ajax/shipping_type.tpl (.../shipping_type.tpl) (revision 14817)
@@ -1,10 +1,24 @@
-
- shipping types here:
-
+
+
+
+
+
+ value=""> ()
+
+
+
+
+
+
-
\ No newline at end of file
+
+
+
+
+
+