license.ui.js 374 B

123456789101112131415161718
  1. /**
  2. * When agree checkbox change.
  3. *
  4. * @param event $event
  5. * @access public
  6. * @return void
  7. */
  8. function agreeChange(event)
  9. {
  10. if($(event.target).prop('checked'))
  11. {
  12. $('#confirm').removeClass('disabled').attr('href', $.createLink('upgrade', 'license', 'agree=1'));
  13. }
  14. else
  15. {
  16. $('#confirm').addClass('disabled').removeAttr('href');
  17. }
  18. }