Skip to content

Commit

Permalink
jui js
Browse files Browse the repository at this point in the history
  • Loading branch information
fancyecommerce committed Jan 9, 2021
1 parent 76f54c3 commit 334a9d2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ class Module extends \fec\AdminModule
{
public function init()
{
parent::init();
# 以下代码必须指定
$this->controllerNamespace = __NAMESPACE__ . '\\controllers';
$this->_currentDir = __DIR__ ;
$this->_currentNameSpace = __NAMESPACE__;

# 指定默认的man文件
$this->layout = "main_ajax.php";
parent::init();

}
}
8 changes: 7 additions & 1 deletion myassets/dwz_jui-master/js/dwz.ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,13 @@ function initUI(_box){
event.preventDefault();
});
});


var div = document.getElementById("container");
var w = div.offsetWidth; // 返回元素的总宽度
var h = div.offsetHeight; // 返回元素的总高度
$(".big_dialog").attr("width", w*0.95);
$(".big_dialog").attr("height", h*0.95);

//dialogs
$("a[target=dialog]", $p).each(function(){
$(this).click(function(event){
Expand Down

0 comments on commit 334a9d2

Please sign in to comment.