Better place to init this variable
authorMichael M Slusarz <slusarz@curecanti.org>
Fri, 18 Dec 2009 20:38:26 +0000 (13:38 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 18 Dec 2009 23:37:45 +0000 (16:37 -0700)
imp/js/dialog.js

index 5b9ebbc..abe7078 100644 (file)
@@ -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();