Editor Modal: keep open on click outside

Editor Modal: keep open on click outside

rf1234rf1234 Posts: 2,986Questions: 87Answers: 421

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,471Questions: 1Answers: 10,467 Site admin
    Answer ✓

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

    Allan

  • rf1234rf1234 Posts: 2,986Questions: 87Answers: 421

    :+1: perfect! Thanks Allan!

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