1 | Index: ui.dialog.js |
---|
2 | =================================================================== |
---|
3 | --- ui.dialog.js (revision 4770) |
---|
4 | +++ ui.dialog.js (working copy) |
---|
5 | |
---|
6 | @@ -154,7 +166,12 @@ |
---|
7 | } |
---|
8 | top = top < doc.scrollTop() ? doc.scrollTop() : top; |
---|
9 | uiDialog.css({top: top, left: left}); |
---|
10 | - uiDialog.show(); |
---|
11 | + if(options.show){ |
---|
12 | + options.show(uiDialog); |
---|
13 | + } |
---|
14 | + else{ |
---|
15 | + uiDialog.show(); |
---|
16 | + } |
---|
17 | self.moveToTop(); |
---|
18 | self.activate(); |
---|
19 | |
---|
20 | @@ -188,7 +205,12 @@ |
---|
21 | |
---|
22 | this.close = function() { |
---|
23 | this.overlay && this.overlay.destroy(); |
---|
24 | - uiDialog.hide(); |
---|
25 | + if(options.hide){ |
---|
26 | + options.hide(uiDialog); |
---|
27 | + } |
---|
28 | + else{ |
---|
29 | + uiDialog.hide(); |
---|
30 | + } |
---|
31 | |
---|
32 | // CALLBACK: close |
---|
33 | var closeEV = null; |
---|
34 | @@ -216,7 +238,9 @@ |
---|
35 | position: 'center', |
---|
36 | resizable: true, |
---|
37 | width: 300, |
---|
38 | - zIndex: 1000 |
---|
39 | + zIndex: 1000, |
---|
40 | + show:false, |
---|
41 | + hide:false |
---|
42 | }, |
---|
43 | |
---|
44 | overlay: function(dialog) { |
---|