/[drupal]/contributions/modules/magento/magento_orders/js/same_address.js
ViewVC logotype

Diff of /contributions/modules/magento/magento_orders/js/same_address.js

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1 by mtopolov, Thu Jun 25 09:53:56 2009 UTC revision 1.2 by mtopolov, Mon Nov 16 10:38:48 2009 UTC
# Line 0  Line 1 
1    if (Drupal.jsEnabled) {
2            $(document).ready(function() {
3                    $("#edit-same-address").change(function () {
4                            if ($("input#edit-same-address:checked").val()==1) {
5                                    $("fieldset.shipping_address").hide();
6                                    $("input#edit-shipping-firstname").val($("input#edit-billing-firstname").val());
7                                    $("input#edit-shipping-lastname").val($("input#edit-billing-lastname").val());
8                                    $("select#edit-shipping-country-id").val($("select#edit-billing-country-id").val());
9                                    $("input#edit-shipping-city").val($("input#edit-billing-city").val());
10                                    $("input#edit-shipping-street").val($("input#edit-billing-street").val());
11                                    $("input#edit-shipping-postcode").val($("input#edit-billing-postcode").val());
12                                    $("input#edit-shipping-telephone").val($("input#edit-billing-telephone").val());
13                            }else $("fieldset.shipping_address").show();
14                    });
15            });
16    }
17    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.3