text: $(document).ready(function () {
      /*sweetalert confirm*/
      $(document.body).on('click', '.js-submit-confirm', function (event) {
          event.preventDefault();
          var $form = $(this).closest('form');
          var $el = $(this);
          var text = $el.data('confirm-message') ? $el.data('confirm-message') : 'You will not be able to recover this imaginary file!';
          swal({
              title: 'Are you sure?',
              text: "You won't be able to revert this!",
              type: 'warning',
              showCancelButton: true,
              cancelButtonColor: '#d33',
              confirmButtonColor: '#3085d6',
              confirmButtonText: 'Yes, delete it!'
          }).then(function () {
              $form.submit()
          })
      });
  });
  
  
  