jquery-confirm
jquery-confirm copied to clipboard
Add navigation block on the main page
jquery-confirm version: v3.3.4
I'm submitting a ... (check one with "x") [ ] bug report [X] feature request [ ] support request
Expected behavior: It would be very good if, when opening Confirm, the main page was blocked for navigation, only access to the dialog.
Steps to reproduce: open confirm and press tab a few times.
You can try this if you don't use the tabIndex attribut:
$("*").attr("tabindex", "-1");
Jquery-confirm command...
$("*").removeAttr("tabindex");
or change the jquery-confirm.js: Add:
if(this.NoTabAction)
$("*").attr("tabindex", "-1");
After:
w.Jconfirm.prototype = {
_init: function(){
var that = this;
And add:
if(this.NoTabAction)
$("*").removeAttr("tabindex");
Before:
return true;
},
open: function(){
You can now use the NoTabAction option:
$.alert(
{
NoTabAction: true
...
})