Title: setting content closes dialog
Post by: iceh on August 17, 2014, 11:19:18 PM
Hi, I have a dialog: <div id="documentDialog" class="easyui-dialog" style="width:600px;height:400px;padding:5px" data-options="buttons:'#documentDialogButtonBar',modal:true,inline:true,closable:false,closed:true,resizable:true,maximizable:true"> </div> Then I set the content with: dialog.dialog({ title: title, cache: false, height: height, width: width, inline: inline, maximized: false, content: getLoadingArea(), onRestore: function () { // maximized -> back to normal documentDialog.CenterMaximizeIfneeded(dialog); } });
safeAjaxData(url, "GET", data, null, function (result) { dialog.dialog({ cache: false, height: height, width: width, content: result }); documentDialog.OpenCenterMaximizeIfneeded(dialog); setDialogTitle(dialog, title); }); When the user presses ok, I do: dialog.dialog({ content: data, href: null, cache: false }); However, the dialog get's closed :(
|