Files
PrestaShop/install-dev/theme/js/welcome.js
fBrignoli d22fde6176 [*] Project : Jquery 1.7.2
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14792 b9a71923-0436-4b27-9f14-aed3839534dd
2012-04-20 15:45:43 +00:00

25 lines
716 B
JavaScript

$(document).ready(function()
{
// Submit change of language
$('#langList li input').click(function()
{
var form = $('#mainForm');
form.attr('action', form.attr('action')+'#licenses-agreement');
form.submit();
});
// Desactivate next button if licence checkbox is not checked
if (!$('#set_license').prop('checked'))
{
$('#btNext').addClass('disabled').attr('disabled', true);
}
// Activate / desactivate next button when licence checkbox is clicked
$('#set_license').click(function()
{
if ($(this).prop('checked'))
$('#btNext').removeClass('disabled').attr('disabled', false);
else
$('#btNext').addClass('disabled').attr('disabled', true);
});
});