Index: branches/unlabeled/unlabeled-1.23.2/kernel/admin_templates/catalog.tpl
===================================================================
diff -u -r5562 -r5573
--- branches/unlabeled/unlabeled-1.23.2/kernel/admin_templates/catalog.tpl (.../catalog.tpl) (revision 5562)
+++ branches/unlabeled/unlabeled-1.23.2/kernel/admin_templates/catalog.tpl (.../catalog.tpl) (revision 5573)
@@ -74,7 +74,13 @@
a_toolbar.AddButton( new ToolBarSeparator('sep3') );
a_toolbar.AddButton( new ToolBarButton('export', '', function() {
- submit_event($Catalog.ActivePrefix, 'OnExport');
+ var $export_prefixes = new Array('l', 'p');
+ if (in_array($Catalog.ActivePrefix, $export_prefixes)) {
+ submit_event($Catalog.ActivePrefix, 'OnExport');
+ }
+ else {
+ alert('');
+ }
}
) );