views:

32

answers:

2

anybody else had this problem, do you know how to fix this ?

my code:

var currentFormconfirm;
    $(function () {
        $("#dialog-confirm-confirm").dialog({
            resizable: false,
            height: 220,
            width: 400,
            modal: true,
            autoOpen: false,
            buttons: {
                'Yes': function () {
                    $(this).dialog('close');
                    currentFormconfirm.submit();
                },
                'Cancel': function () {
                    $(this).dialog('close');
                }
            }
        });
        $(".confirm").click(function () {
            currentFormconfirm = $(this).closest('form');
            $("#dialog-confirm-confirm").dialog('open');
            return false;
        });
    });
+1  A: 

I too have this problem. My solution:

    $('#dlg') 
    .dialog('open')            
    .dialog({position:'center'});  //UI Dialog positioning error 
atika
try using the latest version of jquery.js and .css
Omu
+1  A: 

fix it, by using the latest version of Jquery.js and .css

Omu