Editor Modal: keep open on click outside

Editor Modal: keep open on click outside

rf1234rf1234 Posts: 2,801Questions: 85Answers: 406

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: 61,446Questions: 1Answers: 10,054 Site admin
    Answer ✓

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

    Allan

  • rf1234rf1234 Posts: 2,801Questions: 85Answers: 406

    :+1: perfect! Thanks Allan!

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