EasyUI Forum
April 29, 2024, 12:40:49 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: setting content closes dialog  (Read 5893 times)
iceh
Jr. Member
**
Posts: 61


View Profile
« on: August 17, 2014, 11:19:18 PM »

Hi,

I have a dialog:

Code:
<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:

Code:
    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:

Code:
        dialog.dialog({
            content: data,
            href: null,
            cache: false
        });

However, the dialog get's closed Sad
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!