From 7399b25a4acbd7f2f54ce66127bb007ccf80c6ac Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Fri, 18 Dec 2009 13:38:26 -0700 Subject: [PATCH] Better place to init this variable --- imp/js/dialog.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/imp/js/dialog.js b/imp/js/dialog.js index 5b9ebbc50..abe707849 100644 --- a/imp/js/dialog.js +++ b/imp/js/dialog.js @@ -13,8 +13,6 @@ var IMPDialog = { display: function(data) { - this.noreload = false; - if (Object.isString(data)) { data = decodeURIComponent(data).evalJSON(true); } @@ -82,6 +80,7 @@ var IMPDialog = { if (r.response.success) { this._close(); + this.noreload = false; document.fire('IMPDialog:success', this.type); if (!this.noreload) { location.reload(); -- 2.11.0