mirror of https://gitee.com/karson/fastadmin.git
增加配置参数-窗口大小,方便统一设置全局或单个模块的大小.
parent
251774d0bd
commit
5ec2a9893a
|
|
@ -117,7 +117,7 @@ define(['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, undefine
|
||||||
title = options && options.title ? options.title : (title ? title : "");
|
title = options && options.title ? options.title : (title ? title : "");
|
||||||
url = Fast.api.fixurl(url);
|
url = Fast.api.fixurl(url);
|
||||||
url = url + (url.indexOf("?") > -1 ? "&" : "?") + "dialog=1";
|
url = url + (url.indexOf("?") > -1 ? "&" : "?") + "dialog=1";
|
||||||
var area = [$(window).width() > 800 ? '800px' : '95%', $(window).height() > 600 ? '600px' : '95%'];
|
var area = Fast.config.openArea != undefined ? Fast.config.openArea : [$(window).width() > 800 ? '800px' : '95%', $(window).height() > 600 ? '600px' : '95%'];
|
||||||
options = $.extend({
|
options = $.extend({
|
||||||
type: 2,
|
type: 2,
|
||||||
title: title,
|
title: title,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue