Editor Modal: keep open on click outside

Editor Modal: keep open on click outside

rf1234rf1234 Posts: 3,037Questions: 88Answers: 423

I am trying to keep the Editor modal open when the user clicks outside the modal. Currently the modal closes and all entries are cancelled. Is there a way to keep it open until the user either submits or closes the modal with the close button?

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,893Questions: 1Answers: 10,531 Site admin
    Answer ✓

    Yes, the onBackground option of the form-options object.

    Allan

  • rf1234rf1234 Posts: 3,037Questions: 88Answers: 423

    :+1: perfect! Thanks Allan!

    $.extend( true, $.fn.dataTable.Editor.defaults, {
                formOptions: {
                    main: {
                        onBackground: 'none'
                    },
                    bubble: {
                        onBackground: 'none'
                    }
                }, ....
    
This discussion has been closed.