svn: /web/doc-editor/trunk/ js/ui/component/MainMenu.js themes/img/book.png themes/style.css

From: Date: Sat, 12 Dec 2009 20:28:00 +0000
Subject: svn: /web/doc-editor/trunk/ js/ui/component/MainMenu.js themes/img/book.png themes/style.css
Groups: php.doc.web 
Request: Send a blank email to doc-web+get-1306@lists.php.net to get a copy of this message
yannick Sat, 12 Dec 2009 20:28:00 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=292042 Log: Add 2 links under the main menu : First to open a new tab to report a bug, second, to open a new tab to read the documentation on the php's wiki Changed paths: U web/doc-editor/trunk/js/ui/component/MainMenu.js A web/doc-editor/trunk/themes/img/book.png U web/doc-editor/trunk/themes/style.css Modified: web/doc-editor/trunk/js/ui/component/MainMenu.js =================================================================== --- web/doc-editor/trunk/js/ui/component/MainMenu.js 2009-12-12 17:36:34 UTC (rev 292041) +++ web/doc-editor/trunk/js/ui/component/MainMenu.js 2009-12-12 20:28:00 UTC (rev 292042) @@ -84,8 +84,8 @@ } if (tab.items) { - tab.removeAll(true); - } + tab.removeAll(true); + } tab.add(new ui.component.BuildStatus()); tab.doLayout(); // render the grid @@ -112,8 +112,8 @@ } if (tab.items) { - tab.removeAll(true); - } + tab.removeAll(true); + } tab.add(new ui.component.CheckDoc()); tab.doLayout(); // render the grid @@ -188,6 +188,64 @@ ); } }, '-', { + id : 'tab-report-bug-btn', + text : _('Report bugs'), + iconCls : 'iconBugs', + handler : function() + { + if (!Ext.getCmp('main-panel').findById('tab-report-bug')) { + + Ext.getCmp('main-panel').add({ + id : 'tab-report-bug', + xtype : 'iframepanel', + title : _('Loading...'), + iconCls : 'iconBugs', + loadMask : true, + defaultSrc : 'http://bugs.php.net/', + listeners : { + documentloaded : function(frame) + { + frame.ownerCt.setTitle('Report bugs'); + } + } + }); + + Ext.getCmp('main-panel').setActiveTab('tab-report-bug'); + + } else { + Ext.getCmp('main-panel').setActiveTab('tab-report-bug'); + } + } + }, { + id : 'tab-documentation-btn', + text : _('Documentation'), + iconCls : 'iconBook', + handler : function() + { + if (!Ext.getCmp('main-panel').findById('tab-documentation')) { + + Ext.getCmp('main-panel').add({ + id : 'tab-documentation', + xtype : 'iframepanel', + title : _('Loading...'), + iconCls : 'iconBook', + loadMask : true, + defaultSrc : 'http://wiki.php.net/doc-editor/', + listeners : { + documentloaded : function(frame) + { + frame.ownerCt.setTitle('Documentation'); + } + } + }); + + Ext.getCmp('main-panel').setActiveTab('tab-documentation'); + + } else { + Ext.getCmp('main-panel').setActiveTab('tab-documentation'); + } + } + }, '-', { id : 'winabout-btn', text : _('About'), iconCls : 'iconHelp', Added: web/doc-editor/trunk/themes/img/book.png =================================================================== (Binary files differ) Property changes on: web/doc-editor/trunk/themes/img/book.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Modified: web/doc-editor/trunk/themes/style.css =================================================================== --- web/doc-editor/trunk/themes/style.css 2009-12-12 17:36:34 UTC (rev 292041) +++ web/doc-editor/trunk/themes/style.css 2009-12-12 20:28:00 UTC (rev 292042) @@ -243,6 +243,8 @@ background: transparent url(../themes/img/error_delete.png) no-repeat 0 0; } .iconBugs { background-image: url(../themes/img/bug.png) !important; +} .iconBook { + background-image: url(../themes/img/book.png) !important; } .iconIndent { background-image: url(../themes/img/text_indent.png) !important; } .saveFile {

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