|
@@ -24,8 +24,10 @@ var messageHandler = (function(my) {
|
24
|
24
|
* @param leftButton the fist button's text
|
25
|
25
|
* @param submitFunction function to be called on submit
|
26
|
26
|
* @param loadedFunction function to be called after the prompt is fully loaded
|
|
27
|
+ * @param closeFunction function to be called after the prompt is closed
|
27
|
28
|
*/
|
28
|
|
- my.openTwoButtonDialog = function(titleString, msgString, persistent, leftButton, submitFunction, loadedFunction) {
|
|
29
|
+ my.openTwoButtonDialog = function(titleString, msgString, persistent, leftButton,
|
|
30
|
+ submitFunction, loadedFunction, closeFunction) {
|
29
|
31
|
var buttons = {};
|
30
|
32
|
buttons[leftButton] = true;
|
31
|
33
|
buttons.Cancel = false;
|
|
@@ -35,7 +37,8 @@ var messageHandler = (function(my) {
|
35
|
37
|
buttons: buttons,
|
36
|
38
|
defaultButton: 1,
|
37
|
39
|
loaded: loadedFunction,
|
38
|
|
- submit: submitFunction
|
|
40
|
+ submit: submitFunction,
|
|
41
|
+ close: closeFunction
|
39
|
42
|
});
|
40
|
43
|
};
|
41
|
44
|
|