22 lines
400 B
JavaScript
22 lines
400 B
JavaScript
/**
|
|
* When agree checkbox change.
|
|
*
|
|
* @param event $event
|
|
* @access public
|
|
* @return void
|
|
*/
|
|
function agreeChange(event)
|
|
{
|
|
if($(event.target).prop('checked'))
|
|
{
|
|
$('.btn-install').attr('href', nextLink);
|
|
$('.btn-install').removeClass('disabled');
|
|
}
|
|
else
|
|
{
|
|
$('.btn-install').removeAttr('href');
|
|
$('.btn-install').addClass('disabled');
|
|
}
|
|
}
|
|
|