Licitator 1.0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
667 B

5 years ago
  1. <script>
  2. $( document ).ready(function() {
  3. $("input[type='checkbox']").on('change', function() {
  4. $(this).parent().find(".options > input").attr("disabled", $(this).prop('checked'));
  5. });
  6. });
  7. function sendResponse() {
  8. $('#hidden_form_item').val(JSON.stringify($('#container input').serializeArray()));
  9. $.ajax({ type: 'POST', url: '{{ app.request.getSchemeAndHttpHost() }}{{ path('api_app_api_guardartareaapinonadmin_savetaskexternalmail', {'hash': hash})}}', data: $('form').serialize(), cache: false,}).done(function() {alert('Saved')}).fail(function() {alert('Error saving changes');});
  10. }
  11. </script>