svn: /web/doc-editor/trunk/js/ui/task/ ChangeFileOwner.js

From: Date: Mon, 17 Jan 2011 21:25:38 +0000
Subject: svn: /web/doc-editor/trunk/js/ui/task/ ChangeFileOwner.js
Groups: php.doc.web 
Request: Send a blank email to doc-web+get-1955@lists.php.net to get a copy of this message
yannick Mon, 17 Jan 2011 21:25:38 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=307549 Log: Allow to close a tab after the task has been executed Changed paths: U web/doc-editor/trunk/js/ui/task/ChangeFileOwner.js Modified: web/doc-editor/trunk/js/ui/task/ChangeFileOwner.js =================================================================== --- web/doc-editor/trunk/js/ui/task/ChangeFileOwner.js 2011-01-17 21:24:42 UTC (rev 307548) +++ web/doc-editor/trunk/js/ui/task/ChangeFileOwner.js 2011-01-17 21:25:38 UTC (rev 307549) @@ -29,6 +29,10 @@ // Remove wait msg msg.hide(); + if( Ext.isDefined(this.fromType) && this.fromType === 'tab') { + Ext.getCmp('main-panel').remove(this.from.curTab); + } + this.from.close(); // Notify @@ -41,6 +45,10 @@ msg.hide(); PhDOE.winForbidden(o.type); + if( Ext.isDefined(this.fromType) && this.fromType === 'tab') { + Ext.getCmp('main-panel').remove(this.from.curTab); + } + this.from.close(); } });

« previous php.doc.web (#1955) next »