Popup UI changed.

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9214 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ChanMyeong 2011-09-20 04:50:04 +00:00
parent 251e5ec87e
commit f57a582b95
4 changed files with 5 additions and 35 deletions

View file

@ -449,17 +449,8 @@ function zbxe_folder_close(id) {
**/
function setFixedPopupSize() {
var $ = jQuery;
var $header = $('#popHeader');
var $body = $('#popBody');
if ($body.length) {
if ($body.height() > 400) {
$body.css({ overflow:'auto', overflowX:'hidden', height:400+'px' });
}
}
var $win = $(window);
var $pc = $('#popup_content');
var $pc = $('body>.x');
var w = Math.max($pc[0].offsetWidth, 600);
var h = $pc[0].offsetHeight;
var dw = $win.width();

View file

@ -736,17 +736,8 @@ function zbxe_folder_close(id) {
**/
function setFixedPopupSize() {
var $ = jQuery;
var $header = $('#popHeader');
var $body = $('#popBody');
if ($body.length) {
if ($body.height() > 400) {
$body.css({ overflow:'auto', overflowX:'hidden', height:400+'px' });
}
}
var $win = $(window);
var $pc = $('#popup_content');
var $pc = $('body>.x');
var w = Math.max($pc[0].offsetWidth, 600);
var h = $pc[0].offsetHeight;
var dw = $win.width();

11
common/js/xe.min.js vendored
View file

@ -734,17 +734,8 @@ function zbxe_folder_close(id) {
**/
function setFixedPopupSize() {
var $ = jQuery;
var $header = $('#popHeader');
var $body = $('#popBody');
if ($body.length) {
if ($body.height() > 400) {
$body.css({ overflow:'auto', overflowX:'hidden', height:400+'px' });
}
}
var $win = $(window);
var $pc = $('#popup_content');
var $pc = $('body>.x');
var w = Math.max($pc[0].offsetWidth, 600);
var h = $pc[0].offsetHeight;
var dw = $win.width();

View file

@ -1,9 +1,6 @@
<!--%import("../../modules/admin/tpl/css/admin.css")-->
<div id="xeAdmin">
<div id="popup_content">
<load target="../../modules/admin/tpl/css/admin.css" />
<div class="x">
{$content}
<button class="xButton" type="button" onclick="window.close();return false;"><span>{$lang->cmd_close}</span></button>
</div>
</div>
<script type="text/javascript">
jQuery(window).load(setFixedPopupSize);