dialog close button only appears on hover
I'm using version 1.8.6, with the "Lightness" theme, which I have not modified. I put a dialog on the page, and the close button ("X" in the upper right hand corner, in the title bar) does not show up. If I hover over the spot where it should be, I get a white square, which does close the dialog when I click it. The dialog is displaying exactly as desired otherwise. Is there something I need to do to have this always show up? Or am I not using the dialog correctly?
Below is the code I'm using to populate and place the dialog (the lines where I actually place the dialog are
highlighted:
- $(".masterDetailGrid > tbody > tr:not(:has(table, th))")
- .css("cursor", "pointer")
- .click(function(event)
- {
- //debugger;
- var $row = $(this);
- var firstParam = $("td", $row).eq(0).text();
- $.ajax(
- {
- type: "POST",
- url: "GetPromotionCodeDetails.ashx?code=" + firstParam,
- //dataType: "text/html",
- async: true,
- cache: false,
- success: function(msg)
- {
- //debugger;
- var details = msg;
- if (details.length > 0)
- {
- Display(details);
- }
- else
- {
- $("detailsDisplay").text("No Data Found");
- }
- $("#dialog").dialog({ width: 400, modal: true });
- $("#dialog").dialog('open');
- },
- error: function(XMLHttpRequest, textStatus, errorThrown)
- {
- alert(textStatus);
- }
- });
- });