Skip to content
Snippets Groups Projects
Commit cb0fd97d authored by Tarje Lavik's avatar Tarje Lavik
Browse files

Merge branch 'master' of bitbucket.org:ubbdst/marcus-special

parents 1bfb5c66 21794316
No related branches found
No related tags found
No related merge requests found
...@@ -585,10 +585,6 @@ ...@@ -585,10 +585,6 @@
$('#c_form').removeClass('hide'); $('#c_form').removeClass('hide');
} }
function makeRequired(element) {
element.addAttr('required');
}
function setPrivateForm() { function setPrivateForm() {
showForm(); showForm();
$('.only-organization').addClass('hide'); $('.only-organization').addClass('hide');
...@@ -633,7 +629,7 @@ ...@@ -633,7 +629,7 @@
}); });
simpleCart.bind( 'beforeCheckout' , function( data ) { simpleCart.bind( 'beforeCheckout' , function( data ) {
isPrivate = $('input[customertype]:checked').val() === 'private'; isPrivate = $('input[name=customertype]:checked').val() === 'private';
if (isPrivate) { if (isPrivate) {
data.c_name = document.getElementById( 'c_firstname' ).value+ ' ' + document.getElementById( 'c_lastname' ).value; data.c_name = document.getElementById( 'c_firstname' ).value+ ' ' + document.getElementById( 'c_lastname' ).value;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment