Open GoogleCodeExporter opened 8 years ago
Original comment by cjj.ifpe...@gmail.com
on 5 Sep 2008 at 10:02
I change the script checkout-process.js into
jQuery(function($) {
/* ship_same_billing enables/disables all inputs of #mailing-address */
$("#form\\.ship_same_billing").bind('click', function(e) {
var $disable = '';
if ($(this).attr('checked')) {
$disable = 'disabled';
}
$("#mailing-address input").not(document.getElementById("save_to_addressbook")).attr("disabled", $disable);
$("#mailing-address input").not(document.getElementById("save_to_addressbook")).attr("value", "");
$("#mailing-address select").attr("disabled", $disable);
$(this).removeAttr('disabled');
});
});
the values are now blanked and the button "Save to Adress book" is no more
disabled when the billing and mailing addresses are the same
Original comment by danielle...@gmail.com
on 26 Dec 2010 at 3:21
in fact we have to be more carefull for the inputs ( one is hidden...) and use
$("#mailing-address input").not(document.getElementById("save_to_addressbook")).not(document.getElementById("addressbook_entry_name")).attr("disabled", $disable);
instead of
$("#mailing-address
input").not(document.getElementById("save_to_addressbook")).attr("disabled",
$disable);
Original comment by danielle...@gmail.com
on 27 Dec 2010 at 1:53
really more carefull, I said :)
to not blank the value of the load_from_addressbook we need
$("#mailing-address
input").not(document.getElementById("save_to_addressbook")).not(document.getElem
entById("load_from_addressbook")).attr("value", "");
Original comment by danielle...@gmail.com
on 27 Dec 2010 at 3:04
Original issue reported on code.google.com by
walteralini
on 5 Sep 2008 at 6:32