CopyPastor

Detecting plagiarism made easy.

Score: -1; Reported for: Open both answers

Possible Plagiarism

Plagiarized on 2017-02-09
by Faisal

Original Post

Original - Posted on 2014-03-05
by Doguita



            
Present in both answers; Present only in the new answer; Present only in the old answer;

On Options chapter, on the page you linked, you can see the `backdrop` option. Passing this option with value `'static'` will prevent closing the modal. you can also pass `{keyboard: false}` to prevent closing the modal by pressing <kbd>Esc</kbd>.
If you opening the modal by js use:
$('#myModal').modal({ backdrop: 'static', keyboard: false }); If you are using data attributes, use:
<button data-target="#myModal" data-toggle="modal" data-backdrop="static" data-keyboard="false"> Launch modal </button>

On Options chapter, in the page you linked, you can see the `backdrop` option. Passing this option with value `'static'` will prevent closing the modal. As @PedroVagner pointed on comments, you also can pass `{keyboard: false}` to prevent closing the modal by pressing <kbd>Esc</kbd>.
If you opening the modal by js use: $('#myModal').modal({backdrop: 'static', keyboard: false})
If you are using data attributes, use:
<button data-target="#myModal" data-toggle="modal" data-backdrop="static" data-keyboard="false"> Launch demo modal </button>`


        
Present in both answers; Present only in the new answer; Present only in the old answer;