Dialog resizable false, then true, then false, etc

Dialog resizable false, then true, then false, etc

In the code below, every other time the dialog is shown, the resize "button" shows and the dialog is resizable. I want this thing NEVER resizable.

  1. $(document).ready(function(){
        $('#vendorinfo').dialog({autoOpen: false});
        $("[class*=vendorlink]").click(function(e){
            e.preventDefault();
            $('#vendorinfo').dialog("option", "resizable", false);
            var id = $(this).attr('class').match(/vendorlink-([0-9]*)/,"$1")[1];
            $.ajax(
              {
                url: "get_company_name.php?user_id="+id,
                dataType: "text",
                success: function(data)
                {
                $('#vendorinfo').dialog("option" , "title" , data);
                }
              }
            )
            $('#vendorinfo').load('vendorinfo.php?user_id='+id,function(){
                $('#vendorinfo').dialog('open');
            });
        });
    });




















I've tried moving the line to set the resizable option to different parts of the script and it still shows every other time the dialog is shown. I've even moved it to the init and when it is there, it always shows, go figure?