cvs: doc-editor /js main.js

From: Date: Wed, 15 Apr 2009 12:17:16 +0000
Subject: cvs: doc-editor /js main.js
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-3732@lists.php.net to get a copy of this message
yannick Wed Apr 15 12:17:16 2009 UTC Modified files: /doc-editor/js main.js Log: open once the "error type" page http://cvs.php.net/viewvc.cgi/doc-editor/js/main.js?r1=1.28&r2=1.29&diff_format=u Index: doc-editor/js/main.js diff -u doc-editor/js/main.js:1.28 doc-editor/js/main.js:1.29 --- doc-editor/js/main.js:1.28 Wed Apr 15 07:51:17 2009 +++ doc-editor/js/main.js Wed Apr 15 12:17:15 2009 @@ -3795,15 +3795,22 @@ iconCls: 'iconHelp', scope: this, handler: function(){ - Ext.getCmp('main-panel').add({ - closable: true, - title: _('About error type'), - iconCls: 'iconHelp', - id: 'FE-help-' + FileID, - autoScroll: true, - autoLoad: './error_type.php' - }); - Ext.getCmp('main-panel').setActiveTab('FE-help-' + FileID); + + if (!Ext.getCmp('main-panel').findById('FE-help')) { + + Ext.getCmp('main-panel').add({ + closable: true, + title: _('About error type'), + iconCls: 'iconHelp', + id: 'FE-help', + autoScroll: true, + autoLoad: './error_type.php' + }); + Ext.getCmp('main-panel').setActiveTab('FE-help'); + + } else { + Ext.getCmp('main-panel').setActiveTab('FE-help'); + } } }] });

« previous php.doc.cvs (#3732) next »