1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
| dialogOpen = function(opt){
| var defaults = {
| id : 'layerForm',
| title : '',
| width: '',
| height: '',
| url : null,
| scroll : false,
| data : {},
| btn: ['确定', '取消'],
| success: function(){},
| yes: function(){}
| }
| var option = $.extend({}, defaults, opt), content = null;
| if(option.scroll){
| content = [option.url]
| }else{
| content = [option.url, 'no']
| }
| top.layer.open({
| type : 2,
| id : option.id,
| title : option.title,
| closeBtn : 1,
| anim: -1,
| isOutAnim: false,
| shadeClose : false,
| shade : 0.3,
| area : [option.width, option.height],
| content : content,
| btn: option.btn,
| success: function(){
| option.success(option.id);
| },
| yes: function(){
| option.yes(option.id);
| }
| });
| }
|
|