作者 CoolAbc

增加配置参数-窗口大小,方便统一设置全局或单个模块的大小.

@@ -117,7 +117,7 @@ define(['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, undefine @@ -117,7 +117,7 @@ define(['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, undefine
117 title = options && options.title ? options.title : (title ? title : ""); 117 title = options && options.title ? options.title : (title ? title : "");
118 url = Fast.api.fixurl(url); 118 url = Fast.api.fixurl(url);
119 url = url + (url.indexOf("?") > -1 ? "&" : "?") + "dialog=1"; 119 url = url + (url.indexOf("?") > -1 ? "&" : "?") + "dialog=1";
120 - var area = [$(window).width() > 800 ? '800px' : '95%', $(window).height() > 600 ? '600px' : '95%']; 120 + var area = Fast.config.openArea != undefined ? Fast.config.openArea : [$(window).width() > 800 ? '800px' : '95%', $(window).height() > 600 ? '600px' : '95%'];
121 options = $.extend({ 121 options = $.extend({
122 type: 2, 122 type: 2,
123 title: title, 123 title: title,