why windows title not set on jQuery ui window? -
i load view on popup window works fine window title not set , empty set in code runs without error. wrong me?
$(function () { $(".dialog-trigger").on("click", function (event) { event.preventdefault(); $.ajax({ url: "opensendsmsdialog", type: "get", }) .done(function (result) { $("#clientdetailmodal").html(result).dialog({ autoopen: true, width: 400, modal: true, show: { effect: "blind", duration: 1000 } }, "option", "title", "321 file"); }); }); });
you're passing random arguments after object used initialize dialog, ignored: http://api.jqueryui.com/dialog/
$("#clientdetailmodal").html(result).dialog({ autoopen: true, width: 400, modal: true, show: { effect: "blind", duration: 1000 }, title: '321 file' });
Comments
Post a Comment