Page MenuHomeIn-Portal Phabricator

D205.id693.diff
No OneTemporary

File Metadata

Created
Wed, Feb 26, 9:04 AM

D205.id693.diff

Index: branches/5.3.x/core/admin_templates/catalog/advanced_view.tpl
===================================================================
--- branches/5.3.x/core/admin_templates/catalog/advanced_view.tpl
+++ branches/5.3.x/core/admin_templates/catalog/advanced_view.tpl
@@ -75,6 +75,23 @@
a_toolbar.AddButton( new ToolBarSeparator('sep3') );
+ a_toolbar.AddButton( new ToolBarButton('export', '<inp2:m_phrase label="la_ToolTip_Export" escape="1"/>', function() {
+ var $export_template_prefix = $Catalog.ActivePrefix.replace(/\.showall$/, ''),
+ $export_templates = <inp2:c_PrintCatalogExportTemplates prefixes="l,n,p"/>;
+
+ if ($export_templates[$export_template_prefix] != undefined) {
+ $Catalog.storeIDs('export_categories');
+
+ open_popup($Catalog.ActivePrefix, 'OnExport', $export_templates[$export_template_prefix]);
+ }
+ else {
+ alert('<inp2:m_phrase name="la_Text_InDevelopment" escape="1"/>');
+ }
+ }
+ ) );
+
+ a_toolbar.AddButton( new ToolBarSeparator('sep4') );
+
a_toolbar.AddButton( new ToolBarButton('view', '<inp2:m_phrase label="la_ToolTip_View" escape="1"/>', function() {
show_viewmenu(a_toolbar, 'view');
}
Index: branches/5.3.x/core/units/categories/categories_config.php
===================================================================
--- branches/5.3.x/core/units/categories/categories_config.php
+++ branches/5.3.x/core/units/categories/categories_config.php
@@ -135,7 +135,7 @@
'advanced_view' => Array (
'prefixes' => Array (), 'format' => "!la_title_AdvancedView!",
- 'toolbar_buttons' => Array ('select', 'cancel', 'new_cat', 'new_link', 'new_article', 'new_topic', 'new_product', 'edit', 'delete', 'new_listing', 'approve', 'decline', 'view', 'dbl-click'),
+ 'toolbar_buttons' => Array ('select', 'cancel', 'new_cat', 'new_link', 'new_article', 'new_topic', 'new_product', 'edit', 'delete', 'new_listing', 'approve', 'decline', 'export', 'view', 'dbl-click'),
),
'reviews' => Array (
'prefixes' => Array (), 'format' => "!la_title_Reviews!",

Event Timeline