]> git.wh0rd.org Git - tt-rss.git/commitdiff
dijit.dialog canceling change
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 16 Nov 2010 13:20:15 +0000 (16:20 +0300)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 16 Nov 2010 13:20:15 +0000 (16:20 +0300)
functions.js

index 7e826ab3e7583fd886cbcbbeabd4b2a818e0e4f3..40779a06e9df1870f3a630a4c83ea2c26e9f2550 100644 (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});