EasyUI Forum
November 28, 2025, 04:32:34 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: Dialog issue  (Read 13756 times)
mzeddd
Full Member
***
Posts: 223



View Profile
« on: September 29, 2014, 12:35:21 AM »

Hi,

I use the following code (more or less) to build dialog on the page.

It works well on 1.3.6 but with 1.4 I see that content loaded via 'refresh' is located behind "toolbar" and "buttons".
In case if I load very long text via 'refresh' scrollbar appears but 'up' and 'down' buttons could not be seen because of "toolbar" and "buttons" panels.

Code:
function showDataToAccept(winTitle,id){
var mytime=new Date().getTime();
$('#importDataViewer').dialog({
title:winTitle,
width:1000,
height:550,
maximizable:true,
resizable:true,
closed:true,
toolbar:[{
text:'Accept',
iconCls:'icon-ok',
handler:function(){
// todo
}
},{
text:'Remove',
iconCls:'icon-cancel',
handler:function(){
// todo
}
}
],
buttons:[{
text:'Cancel',
handler:function(){
$('#importDataViewer').dialog('close');
}
}
]
});
$('#importDataViewer').dialog('refresh','ui/mypage.php&id='+id);
$('#importDataViewer').dialog('open');
}
Logged
jarry
Administrator
Hero Member
*****
Posts: 2302


View Profile Email
« Reply #1 on: September 29, 2014, 03:39:20 AM »

Please run the attached example 'test.zip'. It works fine.
Logged
mzeddd
Full Member
***
Posts: 223



View Profile
« Reply #2 on: September 29, 2014, 04:16:34 AM »

Small example works fine Sad

But in my code it works as I described. Will try to play around to find the reason why...

BTW, In web console I see that it calls cc.html 2 times? Do you know why?

http://butwhatif.info/test.html
« Last Edit: September 29, 2014, 04:22:04 AM by mzeddd » Logged
jarry
Administrator
Hero Member
*****
Posts: 2302


View Profile Email
« Reply #3 on: September 29, 2014, 07:15:22 AM »

To avoid calling 'cc.html' multiple times, please try the code below instead.
Code:
	$('#importDataViewer').dialog('open');
$('#importDataViewer').dialog('refresh','cc.html');
Logged
mzeddd
Full Member
***
Posts: 223



View Profile
« Reply #4 on: November 09, 2014, 04:38:28 AM »

Initial problem described in 1st post desappeared in 1.4.1 version
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!