dijit.dialog canceling change

This commit is contained in:
Andrew Dolgov 2010-11-16 16:20:15 +03:00
parent ab7a597cb8
commit 154d2ac4fe
1 changed files with 5 additions and 3 deletions

View File

@ -395,7 +395,8 @@ function closeInfoBox(cleanup) {
var dialog = dialogs.pop();
if (dialog) {
dialog.destroy();
dialog.attr('content', '');
dialog.hide();
}
} catch (e) {
@ -469,16 +470,17 @@ function infobox_callback2(transport) {
style: "width: 600px",
onCancel: function() {
dialogs.remove(this);
this.destroy();
this.attr('content', '');
return true;
},
onExecute: function() {
dialogs.remove(this);
this.destroy();
this.attr('content', '');
return true;
},
onClose: function() {
dialogs.remove(this);
this.attr('content', '');
return true;
},
content: content});