Ext.EventManager.onWindowResize(this.keepItVisible, this, [true]);
this.originalWidth = 0;
this.originalHeight = 0;
+ /* exclusive window */
+ if (tvheadend.dialog)
+ tvheadend.dialog.close();
+ tvheadend.dialog = this;
},
beforeDestroy : function() {
Ext.EventManager.removeResizeListener(this.keepItVisible, this);
Ext.Window.superclass.beforeDestroy.call(this);
+ tvheadend.dialog = null;
},
keepItVisible : function(resize) {
tvheadend.accessupdate = null;
tvheadend.capabilities = null;
tvheadend.admin = false;
+tvheadend.dialog = null;
tvheadend.cookieProvider = new Ext.state.CookieProvider({
// 7 days from now