Reputation: 271
Whenever i'm opening the jQuery dialog i want to be unable to select anything in #view
$("#open-dialog").on("click",function(evt) {
$("#dia-show").dialog({
width: 195,
position: {
at: 'center',
of: $('#view')
},
draggable: true,
appendTo: "#view",
modal:true
});
return false;
parent().draggable({
containment: '#view'
});
});
Upvotes: 0
Views: 882
Reputation: 2528
Setting modal
to true will enable background not clickable :
$("#open-dialog").on("click",function(evt) {
$("#dia-show").dialog({
width: 195,
position: {
at: 'center',
of: $('#view')
modal:true
draggable: true,
appendTo: "#view",
});
return false;
parent().draggable({
containment: '#view'
});
});
Upvotes: 1