John
John

Reputation: 271

on dialog make background unclickable

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

Answers (1)

bumbumpaw
bumbumpaw

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

Related Questions