Revision 9ffd10ce ui/static/snf/js/views.js

b/ui/static/snf/js/views.js
119 119

  
120 120
            this.overlay = $(this.el).overlay();
121 121
            this.append_css = this.options ? this.options.css_class ? this.options.css_class : "" : "";
122

  
123
            this.is_visible = false;
122 124
            return this;
123 125
        },
124 126

  
......
169 171
        },
170 172

  
171 173
        _beforeOpen: function() {
174
            this.is_visible = true;
172 175
            if (this.append_css) {
173 176
                $(this.el).addClass(this.append_css);
174 177
            }
......
194 197
        },
195 198

  
196 199
        _beforeClose: function() {
200
            this.is_visible = false;
197 201
            this.beforeClose.apply(this, arguments);
198 202
            this.options.beforeClose.apply(this, arguments);
199 203
        },
......
224 228

  
225 229
            // do we need to wait for other overlays to close ???
226 230
            if (hidden) { delay = 300; } else { delay = 0; }
231

  
232
            this.is_visible = true;
227 233
            window.setTimeout(_.bind(function(){ this.overlay.load() }, this), delay)
228 234
            return this;
229 235
        },

Also available in: Unified diff