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.

reminder.js 578B

3 년 전
123456789101112131415161718192021
  1. $(document).ready(function() {
  2. initReminder() ;
  3. }) ;
  4. function initReminder() {
  5. var selectorModal = '#modal-reminder' ;
  6. $('.btn-reminder').click(function() {
  7. $.post($(this).attr('href'), {
  8. crudAction: $(this).data('crud-action'),
  9. crudControllerFqcn: $(this).data('crud-controller-fqcn'),
  10. entityId: $(this).data('entity-id'),
  11. }, function(html) {
  12. $(selectorModal).remove() ;
  13. $('body').append(html) ;
  14. $(selectorModal).modal('show') ;
  15. });
  16. return false ;
  17. }) ;
  18. }