From: Andrew Dolgov Date: Tue, 16 Nov 2010 13:20:15 +0000 (+0300) Subject: dijit.dialog canceling change X-Git-Tag: 1.5.0~195 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=154d2ac4fe95614a35921a3e0506c6ed60fc7e69;p=tt-rss.git dijit.dialog canceling change --- diff --git a/functions.js b/functions.js index 7e826ab3..40779a06 100644 --- a/functions.js +++ b/functions.js @@ -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});