Attached Files |
Add-PrevNext-buttons-for-Sub-Item-CORE.patch [^] (12,834 bytes) 2011-01-03 11:27
[Show Content]
Index: admin/system_presets/simple/categories_c.php
===================================================================
--- admin/system_presets/simple/categories_c.php (revision 14094)
+++ admin/system_presets/simple/categories_c.php (working copy)
@@ -35,7 +35,7 @@
// 'categories_related_searches' => Array ('new_item', 'edit', 'delete', 'move_up', 'move_down', 'approve', 'decline', 'view', 'dbl-click'),
-// 'related_searches_edit' => Array ('select', 'cancel'),
+// 'related_searches_edit' => Array ('select', 'cancel', 'prev', 'next'),
);
// fields to hide
Index: admin/system_presets/simple/forms_form.php
===================================================================
--- admin/system_presets/simple/forms_form.php (revision 14094)
+++ admin/system_presets/simple/forms_form.php (working copy)
@@ -24,7 +24,7 @@
// 'forms_edit_fields' => Array ('select', 'cancel', 'prev', 'next', 'new_item', 'edit', 'delete', 'move_up', 'move_down', 'view', 'dbl-click'),
// edit form field when adding/editing form
-// 'form_field_edit' => Array ('select', 'cancel'),
+// 'form_field_edit' => Array ('select', 'cancel', 'prev', 'next'),
);
// fields to hide
Index: admin/system_presets/simple/users_u.php
===================================================================
--- admin/system_presets/simple/users_u.php (revision 14094)
+++ admin/system_presets/simple/users_u.php (working copy)
@@ -57,7 +57,7 @@
// 'user_edit_group' => Array ('select', 'cancel'),
// user image adding/editing (used on "Images" tab during user adding/editing)
-// 'user_image_edit' => Array ('select', 'cancel'),
+// 'user_image_edit' => Array ('select', 'cancel', 'prev', 'next'),
// user selector
// 'user_select' => Array ('select', 'cancel', 'view', 'dbl-click'),
Index: core/admin_templates/categories/images_edit.tpl
===================================================================
--- core/admin_templates/categories/images_edit.tpl (revision 14094)
+++ core/admin_templates/categories/images_edit.tpl (working copy)
@@ -20,7 +20,32 @@
}
) );
+ a_toolbar.AddButton( new ToolBarSeparator('sep1') );
+
+ a_toolbar.AddButton( new ToolBarButton('prev', '<inp2:m_phrase label="la_ToolTip_Prev" escape="1"/>', function() {
+ go_to_id('c-img', '<inp2:c-img_PrevId/>');
+ }
+ ));
+
+ a_toolbar.AddButton( new ToolBarButton('next', '<inp2:m_phrase label="la_ToolTip_Next" escape="1"/>', function() {
+ go_to_id('c-img', '<inp2:c-img_NextId/>');
+ }
+ ));
+
a_toolbar.Render();
+
+ <inp2:m_if check="c-img_IsSingle">
+ a_toolbar.HideButton('prev');
+ a_toolbar.HideButton('next');
+ a_toolbar.HideButton('sep1');
+ <inp2:m_else/>
+ <inp2:m_if check="c-img_IsLast">
+ a_toolbar.DisableButton('next');
+ </inp2:m_if>
+ <inp2:m_if check="c-img_IsFirst">
+ a_toolbar.DisableButton('prev');
+ </inp2:m_if>
+ </inp2:m_if>
</script>
</td>
</tr>
Index: core/admin_templates/categories/related_searches_edit.tpl
===================================================================
--- core/admin_templates/categories/related_searches_edit.tpl (revision 14094)
+++ core/admin_templates/categories/related_searches_edit.tpl (working copy)
@@ -17,7 +17,32 @@
}
) );
+ a_toolbar.AddButton( new ToolBarSeparator('sep1') );
+
+ a_toolbar.AddButton( new ToolBarButton('prev', '<inp2:m_phrase label="la_ToolTip_Prev" escape="1"/>', function() {
+ go_to_id('c-search', '<inp2:c-search_PrevId/>');
+ }
+ ));
+
+ a_toolbar.AddButton( new ToolBarButton('next', '<inp2:m_phrase label="la_ToolTip_Next" escape="1"/>', function() {
+ go_to_id('c-search', '<inp2:c-search_NextId/>');
+ }
+ ));
+
a_toolbar.Render();
+
+ <inp2:m_if check="c-search_IsSingle">
+ a_toolbar.HideButton('prev');
+ a_toolbar.HideButton('next');
+ a_toolbar.HideButton('sep1');
+ <inp2:m_else/>
+ <inp2:m_if check="c-search_IsLast">
+ a_toolbar.DisableButton('next');
+ </inp2:m_if>
+ <inp2:m_if check="c-search_IsFirst">
+ a_toolbar.DisableButton('prev');
+ </inp2:m_if>
+ </inp2:m_if>
</script>
</td>
</tr>
Index: core/admin_templates/categories/relations_edit.tpl
===================================================================
--- core/admin_templates/categories/relations_edit.tpl (revision 14094)
+++ core/admin_templates/categories/relations_edit.tpl (working copy)
@@ -17,15 +17,24 @@
}
) );
- a_toolbar.AddButton( new ToolBarSeparator('sep2') );
+ a_toolbar.AddButton( new ToolBarSeparator('sep1') );
+ a_toolbar.AddButton( new ToolBarButton('prev', '<inp2:m_phrase label="la_ToolTip_Prev" escape="1"/>', function() {
+ go_to_id('c-rel', '<inp2:c-rel_PrevId/>');
+ }
+ ));
+
+ a_toolbar.AddButton( new ToolBarButton('next', '<inp2:m_phrase label="la_ToolTip_Next" escape="1"/>', function() {
+ go_to_id('c-rel', '<inp2:c-rel_NextId/>');
+ }
+ ));
+
a_toolbar.Render();
<inp2:m_if check="c-rel_IsSingle" >
a_toolbar.HideButton('prev');
a_toolbar.HideButton('next');
- a_toolbar.HideButton('sep1');
- a_toolbar.HideButton('sep2');
+ a_toolbar.HideButton('sep1');
<inp2:m_else/>
<inp2:m_if check="c-rel_IsLast" >
a_toolbar.DisableButton('next');
Index: core/admin_templates/forms/form_field_edit.tpl
===================================================================
--- core/admin_templates/forms/form_field_edit.tpl (revision 14094)
+++ core/admin_templates/forms/form_field_edit.tpl (working copy)
@@ -19,7 +19,32 @@
}
) );
+ a_toolbar.AddButton( new ToolBarSeparator('sep1') );
+
+ a_toolbar.AddButton( new ToolBarButton('prev', '<inp2:m_phrase label="la_ToolTip_Prev" escape="1"/>', function() {
+ go_to_id('formflds', '<inp2:formflds_PrevId/>');
+ }
+ ));
+
+ a_toolbar.AddButton( new ToolBarButton('next', '<inp2:m_phrase label="la_ToolTip_Next" escape="1"/>', function() {
+ go_to_id('formflds', '<inp2:formflds_NextId/>');
+ }
+ ));
+
a_toolbar.Render();
+
+ <inp2:m_if check="formflds_IsSingle">
+ a_toolbar.HideButton('prev');
+ a_toolbar.HideButton('next');
+ a_toolbar.HideButton('sep1');
+ <inp2:m_else/>
+ <inp2:m_if check="formflds_IsLast">
+ a_toolbar.DisableButton('next');
+ </inp2:m_if>
+ <inp2:m_if check="formflds_IsFirst">
+ a_toolbar.DisableButton('prev');
+ </inp2:m_if>
+ </inp2:m_if>
</script>
</td>
</tr>
Index: core/admin_templates/regional/email_messages_edit.tpl
===================================================================
--- core/admin_templates/regional/email_messages_edit.tpl (revision 14094)
+++ core/admin_templates/regional/email_messages_edit.tpl (working copy)
@@ -20,8 +20,32 @@
}
) );
+ a_toolbar.AddButton( new ToolBarSeparator('sep1') );
+
+ a_toolbar.AddButton( new ToolBarButton('prev', '<inp2:m_phrase label="la_ToolTip_Prev" escape="1"/>', function() {
+ go_to_id('emailevents', '<inp2:emailevents_PrevId/>');
+ }
+ ));
+
+ a_toolbar.AddButton( new ToolBarButton('next', '<inp2:m_phrase label="la_ToolTip_Next" escape="1"/>', function() {
+ go_to_id('emailevents', '<inp2:emailevents_NextId/>');
+ }
+ ));
+
a_toolbar.Render();
-
+
+ <inp2:m_if check="emailevents_IsSingle">
+ a_toolbar.HideButton('prev');
+ a_toolbar.HideButton('next');
+ a_toolbar.HideButton('sep1');
+ <inp2:m_else/>
+ <inp2:m_if check="emailevents_IsLast">
+ a_toolbar.DisableButton('next');
+ </inp2:m_if>
+ <inp2:m_if check="emailevents_IsFirst">
+ a_toolbar.DisableButton('prev');
+ </inp2:m_if>
+ </inp2:m_if>
</script>
</td>
</tr>
Index: core/admin_templates/themes/file_edit.tpl
===================================================================
--- core/admin_templates/themes/file_edit.tpl (revision 14094)
+++ core/admin_templates/themes/file_edit.tpl (working copy)
@@ -25,7 +25,32 @@
}
) );
+ a_toolbar.AddButton( new ToolBarSeparator('sep1') );
+
+ a_toolbar.AddButton( new ToolBarButton('prev', '<inp2:m_phrase label="la_ToolTip_Prev" escape="1"/>', function() {
+ go_to_id('theme-file', '<inp2:theme-file_PrevId/>');
+ }
+ ));
+
+ a_toolbar.AddButton( new ToolBarButton('next', '<inp2:m_phrase label="la_ToolTip_Next" escape="1"/>', function() {
+ go_to_id('theme-file', '<inp2:theme-file_NextId/>');
+ }
+ ));
+
a_toolbar.Render();
+
+ <inp2:m_if check="theme-file_IsSingle">
+ a_toolbar.HideButton('prev');
+ a_toolbar.HideButton('next');
+ a_toolbar.HideButton('sep1');
+ <inp2:m_else/>
+ <inp2:m_if check="theme-file_IsLast">
+ a_toolbar.DisableButton('next');
+ </inp2:m_if>
+ <inp2:m_if check="theme-file_IsFirst">
+ a_toolbar.DisableButton('prev');
+ </inp2:m_if>
+ </inp2:m_if>
</script>
</td>
</tr>
Index: core/admin_templates/themes/themes_edit_files.tpl
===================================================================
--- core/admin_templates/themes/themes_edit_files.tpl (revision 14094)
+++ core/admin_templates/themes/themes_edit_files.tpl (working copy)
@@ -39,6 +39,7 @@
a_toolbar.AddButton( new ToolBarSeparator('sep2') );
a_toolbar.AddButton( new ToolBarButton('edit', '<inp2:m_phrase label="la_ToolTip_Edit" escape="1"/>', edit) );
+
a_toolbar.AddButton( new ToolBarButton('delete', '<inp2:m_phrase label="la_ToolTip_Delete" escape="1"/>',
function() {
std_delete_items('theme-file')
Index: core/admin_templates/users/image_edit.tpl
===================================================================
--- core/admin_templates/users/image_edit.tpl (revision 14094)
+++ core/admin_templates/users/image_edit.tpl (working copy)
@@ -19,7 +19,32 @@
}
) );
+ a_toolbar.AddButton( new ToolBarSeparator('sep1') );
+
+ a_toolbar.AddButton( new ToolBarButton('prev', '<inp2:m_phrase label="la_ToolTip_Prev" escape="1"/>', function() {
+ go_to_id('u-img', '<inp2:u-img_PrevId/>');
+ }
+ ));
+
+ a_toolbar.AddButton( new ToolBarButton('next', '<inp2:m_phrase label="la_ToolTip_Next" escape="1"/>', function() {
+ go_to_id('u-img', '<inp2:u-img_NextId/>');
+ }
+ ));
+
a_toolbar.Render();
+
+ <inp2:m_if check="u-img_IsSingle">
+ a_toolbar.HideButton('prev');
+ a_toolbar.HideButton('next');
+ a_toolbar.HideButton('sep1');
+ <inp2:m_else/>
+ <inp2:m_if check="u-img_IsLast">
+ a_toolbar.DisableButton('next');
+ </inp2:m_if>
+ <inp2:m_if check="u-img_IsFirst">
+ a_toolbar.DisableButton('prev');
+ </inp2:m_if>
+ </inp2:m_if>
</script>
</td>
</tr>
Index: core/units/forms/forms/forms_config.php
===================================================================
--- core/units/forms/forms/forms_config.php (revision 14094)
+++ core/units/forms/forms/forms_config.php (working copy)
@@ -101,7 +101,7 @@
'edit_status_labels' => Array('formflds'=>'!la_title_Editing_FormField!'),
'new_titlefield' => Array('formflds'=>''),
'format' => "#form_status# '#form_titlefield#' - #formflds_status# '#formflds_titlefield#'",
- 'toolbar_buttons' => Array('select', 'cancel'),
+ 'toolbar_buttons' => Array('select', 'cancel', 'prev', 'next'),
),
'tree_submissions' => Array (
Index: core/units/themes/themes_config.php
===================================================================
--- core/units/themes/themes_config.php (revision 14094)
+++ core/units/themes/themes_config.php (working copy)
@@ -68,7 +68,7 @@
'themes_edit_files' => Array(
'prefixes' => Array('theme', 'theme-file_List'), 'format' => "#theme_status# '#theme_titlefield#' - !la_title_ThemeFiles!",
- 'toolbar_buttons' => Array('select', 'cancel', 'prev', 'next', 'view', 'dbl-click'),
+ 'toolbar_buttons' => Array('select', 'cancel', 'prev', 'next', 'edit', 'delete', 'view', 'dbl-click'),
),
'theme_file_edit' => Array (
@@ -77,7 +77,7 @@
'edit_status_labels' => Array ('theme-file' => '!la_title_EditingThemeFile!'),
'new_titlefield' => Array ('theme-file' => '!la_title_NewThemeFile!'),
'format' => "#theme_status# '#theme_titlefield#' - #theme-file_status# '#theme-file_titlefield#'",
- 'toolbar_buttons' => Array('select', 'cancel', 'reset_edit'),
+ 'toolbar_buttons' => Array('select', 'cancel', 'reset_edit', 'prev', 'next'),
),
'block_edit' => Array('prefixes' => Array('theme-file'), 'format' => "!la_title_EditingThemeFile! '#theme-file_titlefield#'"),
Add-PrevNext-buttons-for-Sub-Item-MODULES.patch [^] (19,681 bytes) 2011-01-03 11:27
[Show Content]
Index: in-bulletin/admin_templates/topics/images_edit.tpl
===================================================================
--- in-bulletin/admin_templates/topics/images_edit.tpl (revision 14094)
+++ in-bulletin/admin_templates/topics/images_edit.tpl (working copy)
@@ -19,7 +19,32 @@
}
) );
+ a_toolbar.AddButton( new ToolBarSeparator('sep1') );
+
+ a_toolbar.AddButton( new ToolBarButton('prev', '<inp2:m_phrase label="la_ToolTip_Prev" escape="1"/>', function() {
+ go_to_id('bb-img', '<inp2:bb-img_PrevId/>');
+ }
+ ));
+
+ a_toolbar.AddButton( new ToolBarButton('next', '<inp2:m_phrase label="la_ToolTip_Next" escape="1"/>', function() {
+ go_to_id('bb-img', '<inp2:bb-img_NextId/>');
+ }
+ ));
+
a_toolbar.Render();
+
+ <inp2:m_if check="bb-img_IsSingle">
+ a_toolbar.HideButton('prev');
+ a_toolbar.HideButton('next');
+ a_toolbar.HideButton('sep1');
+ <inp2:m_else/>
+ <inp2:m_if check="bb-img_IsLast">
+ a_toolbar.DisableButton('next');
+ </inp2:m_if>
+ <inp2:m_if check="bb-img_IsFirst">
+ a_toolbar.DisableButton('prev');
+ </inp2:m_if>
+ </inp2:m_if>
</script>
</td>
</tr>
Index: in-bulletin/admin_templates/topics/relations_edit.tpl
===================================================================
--- in-bulletin/admin_templates/topics/relations_edit.tpl (revision 14094)
+++ in-bulletin/admin_templates/topics/relations_edit.tpl (working copy)
@@ -17,7 +17,32 @@
}
) );
+ a_toolbar.AddButton( new ToolBarSeparator('sep1') );
+
+ a_toolbar.AddButton( new ToolBarButton('prev', '<inp2:m_phrase label="la_ToolTip_Prev" escape="1"/>', function() {
+ go_to_id('bb-rel', '<inp2:bb-rel_PrevId/>');
+ }
+ ));
+
+ a_toolbar.AddButton( new ToolBarButton('next', '<inp2:m_phrase label="la_ToolTip_Next" escape="1"/>', function() {
+ go_to_id('bb-rel', '<inp2:bb-rel_NextId/>');
+ }
+ ));
+
a_toolbar.Render();
+
+ <inp2:m_if check="bb-rel_IsSingle">
+ a_toolbar.HideButton('prev');
+ a_toolbar.HideButton('next');
+ a_toolbar.HideButton('sep1');
+ <inp2:m_else/>
+ <inp2:m_if check="bb-rel_IsLast">
+ a_toolbar.DisableButton('next');
+ </inp2:m_if>
+ <inp2:m_if check="bb-rel_IsFirst">
+ a_toolbar.DisableButton('prev');
+ </inp2:m_if>
+ </inp2:m_if>
</script>
</td>
</tr>
Index: in-bulletin/admin_templates/topics/review_edit.tpl
===================================================================
--- in-bulletin/admin_templates/topics/review_edit.tpl (revision 14094)
+++ in-bulletin/admin_templates/topics/review_edit.tpl (working copy)
@@ -17,6 +17,18 @@
}
) );
+ a_toolbar.AddButton( new ToolBarSeparator('sep1') );
+
+ a_toolbar.AddButton( new ToolBarButton('prev', '<inp2:m_phrase label="la_ToolTip_Prev" escape="1"/>', function() {
+ go_to_id('bb-rev', '<inp2:bb-rev_PrevId/>');
+ }
+ ));
+
+ a_toolbar.AddButton( new ToolBarButton('next', '<inp2:m_phrase label="la_ToolTip_Next" escape="1"/>', function() {
+ go_to_id('bb-rev', '<inp2:bb-rev_NextId/>');
+ }
+ ));
+
a_toolbar.Render();
<inp2:m_if check="bb-rev_IsSingle" >
Index: in-commerce/admin_templates/products/access_pricing_edit.tpl
===================================================================
--- in-commerce/admin_templates/products/access_pricing_edit.tpl (revision 14094)
+++ in-commerce/admin_templates/products/access_pricing_edit.tpl (working copy)
@@ -17,7 +17,32 @@
}
) );
+ a_toolbar.AddButton( new ToolBarSeparator('sep1') );
+
+ a_toolbar.AddButton( new ToolBarButton('prev', '<inp2:m_phrase label="la_ToolTip_Prev" escape="1"/>', function() {
+ go_to_id('pr', '<inp2:pr_PrevId/>');
+ }
+ ));
+
+ a_toolbar.AddButton( new ToolBarButton('next', '<inp2:m_phrase label="la_ToolTip_Next" escape="1"/>', function() {
+ go_to_id('pr', '<inp2:pr_NextId/>');
+ }
+ ));
+
a_toolbar.Render();
+
+ <inp2:m_if check="pr_IsSingle">
+ a_toolbar.HideButton('prev');
+ a_toolbar.HideButton('next');
+ a_toolbar.HideButton('sep1');
+ <inp2:m_else/>
+ <inp2:m_if check="pr_IsLast">
+ a_toolbar.DisableButton('next');
+ </inp2:m_if>
+ <inp2:m_if check="pr_IsFirst">
+ a_toolbar.DisableButton('prev');
+ </inp2:m_if>
+ </inp2:m_if>
</script>
</td>
</tr>
Index: in-commerce/admin_templates/products/file_edit.tpl
===================================================================
--- in-commerce/admin_templates/products/file_edit.tpl (revision 14094)
+++ in-commerce/admin_templates/products/file_edit.tpl (working copy)
@@ -17,7 +17,32 @@
}
) );
+ a_toolbar.AddButton( new ToolBarSeparator('sep1') );
+
+ a_toolbar.AddButton( new ToolBarButton('prev', '<inp2:m_phrase label="la_ToolTip_Prev" escape="1"/>', function() {
+ go_to_id('file', '<inp2:file_PrevId/>');
+ }
+ ));
+
+ a_toolbar.AddButton( new ToolBarButton('next', '<inp2:m_phrase label="la_ToolTip_Next" escape="1"/>', function() {
+ go_to_id('file', '<inp2:file_NextId/>');
+ }
+ ));
+
a_toolbar.Render();
+
+ <inp2:m_if check="file_IsSingle">
+ a_toolbar.HideButton('prev');
+ a_toolbar.HideButton('next');
+ a_toolbar.HideButton('sep1');
+ <inp2:m_else/>
+ <inp2:m_if check="file_IsLast">
+ a_toolbar.DisableButton('next');
+ </inp2:m_if>
+ <inp2:m_if check="file_IsFirst">
+ a_toolbar.DisableButton('prev');
+ </inp2:m_if>
+ </inp2:m_if>
</script>
</td>
</tr>
Index: in-commerce/admin_templates/products/images_edit.tpl
===================================================================
--- in-commerce/admin_templates/products/images_edit.tpl (revision 14094)
+++ in-commerce/admin_templates/products/images_edit.tpl (working copy)
@@ -19,15 +19,24 @@
}
) );
- a_toolbar.AddButton( new ToolBarSeparator('sep2') );
+ a_toolbar.AddButton( new ToolBarSeparator('sep1') );
+ a_toolbar.AddButton( new ToolBarButton('prev', '<inp2:m_phrase label="la_ToolTip_Prev" escape="1"/>', function() {
+ go_to_id('img', '<inp2:img_PrevId/>');
+ }
+ ));
+
+ a_toolbar.AddButton( new ToolBarButton('next', '<inp2:m_phrase label="la_ToolTip_Next" escape="1"/>', function() {
+ go_to_id('img', '<inp2:img_NextId/>');
+ }
+ ));
+
a_toolbar.Render();
<inp2:m_if check="img_IsSingle" >
a_toolbar.HideButton('prev');
a_toolbar.HideButton('next');
- a_toolbar.HideButton('sep1');
- a_toolbar.HideButton('sep2');
+ a_toolbar.HideButton('sep1');
<inp2:m_else/>
<inp2:m_if check="img_IsLast" >
a_toolbar.DisableButton('next');
Index: in-commerce/admin_templates/products/option_edit.tpl
===================================================================
--- in-commerce/admin_templates/products/option_edit.tpl (revision 14094)
+++ in-commerce/admin_templates/products/option_edit.tpl (working copy)
@@ -20,7 +20,35 @@
}
) );
+ a_toolbar.AddButton( new ToolBarSeparator('sep1') );
+
+ a_toolbar.AddButton( new ToolBarButton('prev', '<inp2:m_phrase label="la_ToolTip_Prev" escape="1"/>', function() {
+ PrepareData();
+ go_to_id('po', '<inp2:po_PrevId/>');
+ }
+ ));
+
+ a_toolbar.AddButton( new ToolBarButton('next', '<inp2:m_phrase label="la_ToolTip_Next" escape="1"/>', function() {
+ PrepareData();
+ go_to_id('po', '<inp2:po_NextId/>');
+ }
+ ));
+
a_toolbar.Render();
+
+ <inp2:m_if check="po_IsSingle">
+ a_toolbar.HideButton('prev');
+ a_toolbar.HideButton('next');
+ a_toolbar.HideButton('sep1');
+ <inp2:m_else/>
+ <inp2:m_if check="po_IsLast">
+ a_toolbar.DisableButton('next');
+ </inp2:m_if>
+ <inp2:m_if check="po_IsFirst">
+ a_toolbar.DisableButton('prev');
+ </inp2:m_if>
+ </inp2:m_if>
+
</script>
</td>
</tr>
Index: in-commerce/admin_templates/products/relations_edit.tpl
===================================================================
--- in-commerce/admin_templates/products/relations_edit.tpl (revision 14094)
+++ in-commerce/admin_templates/products/relations_edit.tpl (working copy)
@@ -17,15 +17,24 @@
}
) );
- a_toolbar.AddButton( new ToolBarSeparator('sep2') );
+ a_toolbar.AddButton( new ToolBarSeparator('sep1') );
+ a_toolbar.AddButton( new ToolBarButton('prev', '<inp2:m_phrase label="la_ToolTip_Prev" escape="1"/>', function() {
+ go_to_id('bb-img', '<inp2:bb-img_PrevId/>');
+ }
+ ));
+
+ a_toolbar.AddButton( new ToolBarButton('next', '<inp2:m_phrase label="la_ToolTip_Next" escape="1"/>', function() {
+ go_to_id('bb-img', '<inp2:bb-img_NextId/>');
+ }
+ ));
+
a_toolbar.Render();
<inp2:m_if check="rel_IsSingle" >
a_toolbar.HideButton('prev');
a_toolbar.HideButton('next');
- a_toolbar.HideButton('sep1');
- a_toolbar.HideButton('sep2');
+ a_toolbar.HideButton('sep1');
<inp2:m_else/>
<inp2:m_if check="rel_IsLast" >
a_toolbar.DisableButton('next');
Index: in-commerce/admin_templates/products/review_edit.tpl
===================================================================
--- in-commerce/admin_templates/products/review_edit.tpl (revision 14094)
+++ in-commerce/admin_templates/products/review_edit.tpl (working copy)
@@ -17,6 +17,18 @@
}
) );
+ a_toolbar.AddButton( new ToolBarSeparator('sep1') );
+
+ a_toolbar.AddButton( new ToolBarButton('prev', '<inp2:m_phrase label="la_ToolTip_Prev" escape="1"/>', function() {
+ go_to_id('rev', '<inp2:rev_PrevId/>');
+ }
+ ));
+
+ a_toolbar.AddButton( new ToolBarButton('next', '<inp2:m_phrase label="la_ToolTip_Next" escape="1"/>', function() {
+ go_to_id('rev', '<inp2:rev_NextId/>');
+ }
+ ));
+
a_toolbar.Render();
<inp2:m_if check="rev_IsSingle" >
Index: in-commerce/admin_templates/shipping/zone_edit.tpl
===================================================================
--- in-commerce/admin_templates/shipping/zone_edit.tpl (revision 14094)
+++ in-commerce/admin_templates/shipping/zone_edit.tpl (working copy)
@@ -30,17 +30,14 @@
a_toolbar.AddButton( new ToolBarButton('next', '<inp2:m_phrase label="la_ToolTip_Next" escape="1"/>', function() {
go_to_id('z', '<inp2:z_NextId/>');
}
- ) );
+ ) );
- a_toolbar.AddButton( new ToolBarSeparator('sep2') );
-
a_toolbar.Render();
<inp2:m_if check="z_IsSingle" >
a_toolbar.HideButton('prev');
a_toolbar.HideButton('next');
- a_toolbar.HideButton('sep1');
- a_toolbar.HideButton('sep2');
+ a_toolbar.HideButton('sep1');
<inp2:m_else/>
<inp2:m_if check="z_IsLast" >
a_toolbar.DisableButton('next');
Index: in-link/admin_templates/links/file_edit.tpl
===================================================================
--- in-link/admin_templates/links/file_edit.tpl (revision 14094)
+++ in-link/admin_templates/links/file_edit.tpl (working copy)
@@ -17,7 +17,32 @@
}
) );
+ a_toolbar.AddButton( new ToolBarSeparator('sep1') );
+
+ a_toolbar.AddButton( new ToolBarButton('prev', '<inp2:m_phrase label="la_ToolTip_Prev" escape="1"/>', function() {
+ go_to_id('l-file', '<inp2:l-file_PrevId/>');
+ }
+ ));
+
+ a_toolbar.AddButton( new ToolBarButton('next', '<inp2:m_phrase label="la_ToolTip_Next" escape="1"/>', function() {
+ go_to_id('l-file', '<inp2:l-file_NextId/>');
+ }
+ ));
+
a_toolbar.Render();
+
+ <inp2:m_if check="l-file_IsSingle">
+ a_toolbar.HideButton('prev');
+ a_toolbar.HideButton('next');
+ a_toolbar.HideButton('sep1');
+ <inp2:m_else/>
+ <inp2:m_if check="l-file_IsLast">
+ a_toolbar.DisableButton('next');
+ </inp2:m_if>
+ <inp2:m_if check="l-file_IsFirst">
+ a_toolbar.DisableButton('prev');
+ </inp2:m_if>
+ </inp2:m_if>
</script>
</td>
</tr>
Index: in-link/admin_templates/links/images_edit.tpl
===================================================================
--- in-link/admin_templates/links/images_edit.tpl (revision 14094)
+++ in-link/admin_templates/links/images_edit.tpl (working copy)
@@ -19,7 +19,32 @@
}
) );
+ a_toolbar.AddButton( new ToolBarSeparator('sep1') );
+
+ a_toolbar.AddButton( new ToolBarButton('prev', '<inp2:m_phrase label="la_ToolTip_Prev" escape="1"/>', function() {
+ go_to_id('l-img', '<inp2:l-img_PrevId/>');
+ }
+ ));
+
+ a_toolbar.AddButton( new ToolBarButton('next', '<inp2:m_phrase label="la_ToolTip_Next" escape="1"/>', function() {
+ go_to_id('l-img', '<inp2:l-img_NextId/>');
+ }
+ ));
+
a_toolbar.Render();
+
+ <inp2:m_if check="l-img_IsSingle">
+ a_toolbar.HideButton('prev');
+ a_toolbar.HideButton('next');
+ a_toolbar.HideButton('sep1');
+ <inp2:m_else/>
+ <inp2:m_if check="l-img_IsLast">
+ a_toolbar.DisableButton('next');
+ </inp2:m_if>
+ <inp2:m_if check="l-img_IsFirst">
+ a_toolbar.DisableButton('prev');
+ </inp2:m_if>
+ </inp2:m_if>
</script>
</td>
</tr>
Index: in-link/admin_templates/links/relations_edit.tpl
===================================================================
--- in-link/admin_templates/links/relations_edit.tpl (revision 14094)
+++ in-link/admin_templates/links/relations_edit.tpl (working copy)
@@ -17,7 +17,32 @@
}
) );
+ a_toolbar.AddButton( new ToolBarSeparator('sep1') );
+
+ a_toolbar.AddButton( new ToolBarButton('prev', '<inp2:m_phrase label="la_ToolTip_Prev" escape="1"/>', function() {
+ go_to_id('l-rel', '<inp2:l-rel_PrevId/>');
+ }
+ ));
+
+ a_toolbar.AddButton( new ToolBarButton('next', '<inp2:m_phrase label="la_ToolTip_Next" escape="1"/>', function() {
+ go_to_id('l-rel', '<inp2:l-rel_NextId/>');
+ }
+ ));
+
a_toolbar.Render();
+
+ <inp2:m_if check="l-rel_IsSingle">
+ a_toolbar.HideButton('prev');
+ a_toolbar.HideButton('next');
+ a_toolbar.HideButton('sep1');
+ <inp2:m_else/>
+ <inp2:m_if check="l-rel_IsLast">
+ a_toolbar.DisableButton('next');
+ </inp2:m_if>
+ <inp2:m_if check="l-rel_IsFirst">
+ a_toolbar.DisableButton('prev');
+ </inp2:m_if>
+ </inp2:m_if>
</script>
</td>
</tr>
Index: in-link/admin_templates/links/review_edit.tpl
===================================================================
--- in-link/admin_templates/links/review_edit.tpl (revision 14094)
+++ in-link/admin_templates/links/review_edit.tpl (working copy)
@@ -17,6 +17,18 @@
}
) );
+ a_toolbar.AddButton( new ToolBarSeparator('sep1') );
+
+ a_toolbar.AddButton( new ToolBarButton('prev', '<inp2:m_phrase label="la_ToolTip_Prev" escape="1"/>', function() {
+ go_to_id('l-rev', '<inp2:l-rev_PrevId/>');
+ }
+ ));
+
+ a_toolbar.AddButton( new ToolBarButton('next', '<inp2:m_phrase label="la_ToolTip_Next" escape="1"/>', function() {
+ go_to_id('l-rev', '<inp2:l-rev_NextId/>');
+ }
+ ));
+
a_toolbar.Render();
<inp2:m_if check="l-rev_IsSingle" >
Index: in-news/admin_templates/articles/file_edit.tpl
===================================================================
--- in-news/admin_templates/articles/file_edit.tpl (revision 14094)
+++ in-news/admin_templates/articles/file_edit.tpl (working copy)
@@ -17,7 +17,32 @@
}
) );
+ a_toolbar.AddButton( new ToolBarSeparator('sep1') );
+
+ a_toolbar.AddButton( new ToolBarButton('prev', '<inp2:m_phrase label="la_ToolTip_Prev" escape="1"/>', function() {
+ go_to_id('n-file', '<inp2:n-file_PrevId/>');
+ }
+ ));
+
+ a_toolbar.AddButton( new ToolBarButton('next', '<inp2:m_phrase label="la_ToolTip_Next" escape="1"/>', function() {
+ go_to_id('n-file', '<inp2:n-file_NextId/>');
+ }
+ ));
+
a_toolbar.Render();
+
+ <inp2:m_if check="n-file_IsSingle">
+ a_toolbar.HideButton('prev');
+ a_toolbar.HideButton('next');
+ a_toolbar.HideButton('sep1');
+ <inp2:m_else/>
+ <inp2:m_if check="n-file_IsLast">
+ a_toolbar.DisableButton('next');
+ </inp2:m_if>
+ <inp2:m_if check="n-file_IsFirst">
+ a_toolbar.DisableButton('prev');
+ </inp2:m_if>
+ </inp2:m_if>
</script>
</td>
</tr>
Index: in-news/admin_templates/articles/images_edit.tpl
===================================================================
--- in-news/admin_templates/articles/images_edit.tpl (revision 14094)
+++ in-news/admin_templates/articles/images_edit.tpl (working copy)
@@ -19,7 +19,32 @@
}
) );
+ a_toolbar.AddButton( new ToolBarSeparator('sep1') );
+
+ a_toolbar.AddButton( new ToolBarButton('prev', '<inp2:m_phrase label="la_ToolTip_Prev" escape="1"/>', function() {
+ go_to_id('n-img', '<inp2:n-img_PrevId/>');
+ }
+ ));
+
+ a_toolbar.AddButton( new ToolBarButton('next', '<inp2:m_phrase label="la_ToolTip_Next" escape="1"/>', function() {
+ go_to_id('n-img', '<inp2:n-img_NextId/>');
+ }
+ ));
+
a_toolbar.Render();
+
+ <inp2:m_if check="n-img_IsSingle">
+ a_toolbar.HideButton('prev');
+ a_toolbar.HideButton('next');
+ a_toolbar.HideButton('sep1');
+ <inp2:m_else/>
+ <inp2:m_if check="n-img_IsLast">
+ a_toolbar.DisableButton('next');
+ </inp2:m_if>
+ <inp2:m_if check="n-img_IsFirst">
+ a_toolbar.DisableButton('prev');
+ </inp2:m_if>
+ </inp2:m_if>
</script>
</td>
</tr>
Index: in-news/admin_templates/articles/relations_edit.tpl
===================================================================
--- in-news/admin_templates/articles/relations_edit.tpl (revision 14094)
+++ in-news/admin_templates/articles/relations_edit.tpl (working copy)
@@ -17,7 +17,32 @@
}
) );
+ a_toolbar.AddButton( new ToolBarSeparator('sep1') );
+
+ a_toolbar.AddButton( new ToolBarButton('prev', '<inp2:m_phrase label="la_ToolTip_Prev" escape="1"/>', function() {
+ go_to_id('n-rel', '<inp2:n-rel_PrevId/>');
+ }
+ ));
+
+ a_toolbar.AddButton( new ToolBarButton('next', '<inp2:m_phrase label="la_ToolTip_Next" escape="1"/>', function() {
+ go_to_id('n-rel', '<inp2:n-rel_NextId/>');
+ }
+ ));
+
a_toolbar.Render();
+
+ <inp2:m_if check="n-rel_IsSingle">
+ a_toolbar.HideButton('prev');
+ a_toolbar.HideButton('next');
+ a_toolbar.HideButton('sep1');
+ <inp2:m_else/>
+ <inp2:m_if check="n-rel_IsLast">
+ a_toolbar.DisableButton('next');
+ </inp2:m_if>
+ <inp2:m_if check="n-rel_IsFirst">
+ a_toolbar.DisableButton('prev');
+ </inp2:m_if>
+ </inp2:m_if>
</script>
</td>
</tr>
Index: in-news/admin_templates/articles/review_edit.tpl
===================================================================
--- in-news/admin_templates/articles/review_edit.tpl (revision 14094)
+++ in-news/admin_templates/articles/review_edit.tpl (working copy)
@@ -17,6 +17,18 @@
}
) );
+ a_toolbar.AddButton( new ToolBarSeparator('sep1') );
+
+ a_toolbar.AddButton( new ToolBarButton('prev', '<inp2:m_phrase label="la_ToolTip_Prev" escape="1"/>', function() {
+ go_to_id('n-rev', '<inp2:n-rev_PrevId/>');
+ }
+ ));
+
+ a_toolbar.AddButton( new ToolBarButton('next', '<inp2:m_phrase label="la_ToolTip_Next" escape="1"/>', function() {
+ go_to_id('n-rev', '<inp2:n-rev_NextId/>');
+ }
+ ));
+
a_toolbar.Render();
<inp2:m_if check="n-rev_IsSingle" >
Add-PrevNext-buttons-for-Sub-Item-CORE_v2.patch [^] (17,477 bytes) 2011-01-05 14:25
[Show Content]
Index: admin/system_presets/simple/categories_c.php
===================================================================
--- admin/system_presets/simple/categories_c.php (revision 14123)
+++ admin/system_presets/simple/categories_c.php (working copy)
@@ -26,16 +26,13 @@
// 'categories_relations' => Array ('select', 'cancel', 'prev', 'next', 'new_item', 'edit', 'delete', 'approve', 'decline', 'view', 'dbl-click'),
// 'categories_propertiries' => Array ('select', 'cancel', 'prev', 'next'),
-
// 'categories_permissions' => Array ('select', 'cancel', 'prev', 'next'),
-
// 'categories_images' => Array ('select', 'cancel', 'prev', 'next', 'new_item', 'edit', 'delete', 'move_up', 'move_down', 'setprimary', 'view', 'dbl-click'),
-
// 'reviews' => Array ('edit', 'delete', 'approve', 'decline', 'view', 'dbl-click'),
-
// 'categories_related_searches' => Array ('new_item', 'edit', 'delete', 'move_up', 'move_down', 'approve', 'decline', 'view', 'dbl-click'),
-
-// 'related_searches_edit' => Array ('select', 'cancel'),
+// 'related_searches_edit' => Array ('select', 'cancel', 'prev', 'next'),
+// 'images_edit' => Array ('select', 'cancel', 'prev', 'next'),
+// 'relations_edit' => Array ('select', 'cancel', 'prev', 'next'),
);
// fields to hide
Index: admin/system_presets/simple/forms_form.php
===================================================================
--- admin/system_presets/simple/forms_form.php (revision 14123)
+++ admin/system_presets/simple/forms_form.php (working copy)
@@ -24,7 +24,7 @@
// 'forms_edit_fields' => Array ('select', 'cancel', 'prev', 'next', 'new_item', 'edit', 'delete', 'move_up', 'move_down', 'view', 'dbl-click'),
// edit form field when adding/editing form
-// 'form_field_edit' => Array ('select', 'cancel'),
+// 'form_field_edit' => Array ('select', 'cancel', 'prev', 'next'),
);
// fields to hide
Index: admin/system_presets/simple/languages_lang.php
===================================================================
--- admin/system_presets/simple/languages_lang.php (revision 14123)
+++ admin/system_presets/simple/languages_lang.php (working copy)
@@ -15,6 +15,7 @@
// toolbar buttons
$remove_buttons = Array (
// 'languages_list' => Array ('new_item', 'edit', 'delete', 'export', 'import', 'setprimary', 'refresh', 'view', 'dbl-click'),
+// 'email_messages_edit' => Array ('select', 'cancel', 'prev', 'next'),
);
Index: admin/system_presets/simple/themes_theme.php
===================================================================
--- admin/system_presets/simple/themes_theme.php (revision 14123)
+++ admin/system_presets/simple/themes_theme.php (working copy)
@@ -24,7 +24,7 @@
// 'themes_edit_files' => Array ('select', 'cancel', 'prev', 'next', 'delete', 'view', 'dbl-click'),
// "Edit File"
-// 'theme_file_edit' => Array ('select', 'cancel', 'reset_edit'),
+// 'theme_file_edit' => Array ('select', 'cancel', 'reset_edit', 'prev', 'next'),
);
// fields to hide
Index: admin/system_presets/simple/users_u.php
===================================================================
--- admin/system_presets/simple/users_u.php (revision 14123)
+++ admin/system_presets/simple/users_u.php (working copy)
@@ -57,7 +57,7 @@
// 'user_edit_group' => Array ('select', 'cancel'),
// user image adding/editing (used on "Images" tab during user adding/editing)
-// 'user_image_edit' => Array ('select', 'cancel'),
+// 'user_image_edit' => Array ('select', 'cancel', 'prev', 'next'),
// user selector
// 'user_select' => Array ('select', 'cancel', 'view', 'dbl-click'),
Index: core/admin_templates/categories/images_edit.tpl
===================================================================
--- core/admin_templates/categories/images_edit.tpl (revision 14123)
+++ core/admin_templates/categories/images_edit.tpl (working copy)
@@ -20,7 +20,32 @@
}
) );
+ a_toolbar.AddButton( new ToolBarSeparator('sep1') );
+
+ a_toolbar.AddButton( new ToolBarButton('prev', '<inp2:m_phrase label="la_ToolTip_Prev" escape="1"/>', function() {
+ go_to_id('c-img', '<inp2:c-img_PrevId/>');
+ }
+ ));
+
+ a_toolbar.AddButton( new ToolBarButton('next', '<inp2:m_phrase label="la_ToolTip_Next" escape="1"/>', function() {
+ go_to_id('c-img', '<inp2:c-img_NextId/>');
+ }
+ ));
+
a_toolbar.Render();
+
+ <inp2:m_if check="c-img_IsSingle">
+ a_toolbar.HideButton('prev');
+ a_toolbar.HideButton('next');
+ a_toolbar.HideButton('sep1');
+ <inp2:m_else/>
+ <inp2:m_if check="c-img_IsLast">
+ a_toolbar.DisableButton('next');
+ </inp2:m_if>
+ <inp2:m_if check="c-img_IsFirst">
+ a_toolbar.DisableButton('prev');
+ </inp2:m_if>
+ </inp2:m_if>
</script>
</td>
</tr>
Index: core/admin_templates/categories/related_searches_edit.tpl
===================================================================
--- core/admin_templates/categories/related_searches_edit.tpl (revision 14123)
+++ core/admin_templates/categories/related_searches_edit.tpl (working copy)
@@ -17,7 +17,32 @@
}
) );
+ a_toolbar.AddButton( new ToolBarSeparator('sep1') );
+
+ a_toolbar.AddButton( new ToolBarButton('prev', '<inp2:m_phrase label="la_ToolTip_Prev" escape="1"/>', function() {
+ go_to_id('c-search', '<inp2:c-search_PrevId/>');
+ }
+ ));
+
+ a_toolbar.AddButton( new ToolBarButton('next', '<inp2:m_phrase label="la_ToolTip_Next" escape="1"/>', function() {
+ go_to_id('c-search', '<inp2:c-search_NextId/>');
+ }
+ ));
+
a_toolbar.Render();
+
+ <inp2:m_if check="c-search_IsSingle">
+ a_toolbar.HideButton('prev');
+ a_toolbar.HideButton('next');
+ a_toolbar.HideButton('sep1');
+ <inp2:m_else/>
+ <inp2:m_if check="c-search_IsLast">
+ a_toolbar.DisableButton('next');
+ </inp2:m_if>
+ <inp2:m_if check="c-search_IsFirst">
+ a_toolbar.DisableButton('prev');
+ </inp2:m_if>
+ </inp2:m_if>
</script>
</td>
</tr>
Index: core/admin_templates/categories/relations_edit.tpl
===================================================================
--- core/admin_templates/categories/relations_edit.tpl (revision 14123)
+++ core/admin_templates/categories/relations_edit.tpl (working copy)
@@ -17,15 +17,24 @@
}
) );
- a_toolbar.AddButton( new ToolBarSeparator('sep2') );
+ a_toolbar.AddButton( new ToolBarSeparator('sep1') );
+ a_toolbar.AddButton( new ToolBarButton('prev', '<inp2:m_phrase label="la_ToolTip_Prev" escape="1"/>', function() {
+ go_to_id('c-rel', '<inp2:c-rel_PrevId/>');
+ }
+ ));
+
+ a_toolbar.AddButton( new ToolBarButton('next', '<inp2:m_phrase label="la_ToolTip_Next" escape="1"/>', function() {
+ go_to_id('c-rel', '<inp2:c-rel_NextId/>');
+ }
+ ));
+
a_toolbar.Render();
<inp2:m_if check="c-rel_IsSingle" >
a_toolbar.HideButton('prev');
a_toolbar.HideButton('next');
- a_toolbar.HideButton('sep1');
- a_toolbar.HideButton('sep2');
+ a_toolbar.HideButton('sep1');
<inp2:m_else/>
<inp2:m_if check="c-rel_IsLast" >
a_toolbar.DisableButton('next');
Index: core/admin_templates/forms/form_field_edit.tpl
===================================================================
--- core/admin_templates/forms/form_field_edit.tpl (revision 14123)
+++ core/admin_templates/forms/form_field_edit.tpl (working copy)
@@ -19,7 +19,32 @@
}
) );
+ a_toolbar.AddButton( new ToolBarSeparator('sep1') );
+
+ a_toolbar.AddButton( new ToolBarButton('prev', '<inp2:m_phrase label="la_ToolTip_Prev" escape="1"/>', function() {
+ go_to_id('formflds', '<inp2:formflds_PrevId/>');
+ }
+ ));
+
+ a_toolbar.AddButton( new ToolBarButton('next', '<inp2:m_phrase label="la_ToolTip_Next" escape="1"/>', function() {
+ go_to_id('formflds', '<inp2:formflds_NextId/>');
+ }
+ ));
+
a_toolbar.Render();
+
+ <inp2:m_if check="formflds_IsSingle">
+ a_toolbar.HideButton('prev');
+ a_toolbar.HideButton('next');
+ a_toolbar.HideButton('sep1');
+ <inp2:m_else/>
+ <inp2:m_if check="formflds_IsLast">
+ a_toolbar.DisableButton('next');
+ </inp2:m_if>
+ <inp2:m_if check="formflds_IsFirst">
+ a_toolbar.DisableButton('prev');
+ </inp2:m_if>
+ </inp2:m_if>
</script>
</td>
</tr>
Index: core/admin_templates/regional/email_messages_edit.tpl
===================================================================
--- core/admin_templates/regional/email_messages_edit.tpl (revision 14123)
+++ core/admin_templates/regional/email_messages_edit.tpl (working copy)
@@ -20,8 +20,32 @@
}
) );
+ a_toolbar.AddButton( new ToolBarSeparator('sep1') );
+
+ a_toolbar.AddButton( new ToolBarButton('prev', '<inp2:m_phrase label="la_ToolTip_Prev" escape="1"/>', function() {
+ go_to_id('emailevents', '<inp2:emailevents_PrevId/>');
+ }
+ ));
+
+ a_toolbar.AddButton( new ToolBarButton('next', '<inp2:m_phrase label="la_ToolTip_Next" escape="1"/>', function() {
+ go_to_id('emailevents', '<inp2:emailevents_NextId/>');
+ }
+ ));
+
a_toolbar.Render();
-
+
+ <inp2:m_if check="emailevents_IsSingle">
+ a_toolbar.HideButton('prev');
+ a_toolbar.HideButton('next');
+ a_toolbar.HideButton('sep1');
+ <inp2:m_else/>
+ <inp2:m_if check="emailevents_IsLast">
+ a_toolbar.DisableButton('next');
+ </inp2:m_if>
+ <inp2:m_if check="emailevents_IsFirst">
+ a_toolbar.DisableButton('prev');
+ </inp2:m_if>
+ </inp2:m_if>
</script>
</td>
</tr>
Index: core/admin_templates/themes/file_edit.tpl
===================================================================
--- core/admin_templates/themes/file_edit.tpl (revision 14123)
+++ core/admin_templates/themes/file_edit.tpl (working copy)
@@ -25,7 +25,32 @@
}
) );
+ a_toolbar.AddButton( new ToolBarSeparator('sep1') );
+
+ a_toolbar.AddButton( new ToolBarButton('prev', '<inp2:m_phrase label="la_ToolTip_Prev" escape="1"/>', function() {
+ go_to_id('theme-file', '<inp2:theme-file_PrevId/>');
+ }
+ ));
+
+ a_toolbar.AddButton( new ToolBarButton('next', '<inp2:m_phrase label="la_ToolTip_Next" escape="1"/>', function() {
+ go_to_id('theme-file', '<inp2:theme-file_NextId/>');
+ }
+ ));
+
a_toolbar.Render();
+
+ <inp2:m_if check="theme-file_IsSingle">
+ a_toolbar.HideButton('prev');
+ a_toolbar.HideButton('next');
+ a_toolbar.HideButton('sep1');
+ <inp2:m_else/>
+ <inp2:m_if check="theme-file_IsLast">
+ a_toolbar.DisableButton('next');
+ </inp2:m_if>
+ <inp2:m_if check="theme-file_IsFirst">
+ a_toolbar.DisableButton('prev');
+ </inp2:m_if>
+ </inp2:m_if>
</script>
</td>
</tr>
Index: core/admin_templates/themes/themes_edit_files.tpl
===================================================================
--- core/admin_templates/themes/themes_edit_files.tpl (revision 14123)
+++ core/admin_templates/themes/themes_edit_files.tpl (working copy)
@@ -39,6 +39,7 @@
a_toolbar.AddButton( new ToolBarSeparator('sep2') );
a_toolbar.AddButton( new ToolBarButton('edit', '<inp2:m_phrase label="la_ToolTip_Edit" escape="1"/>', edit) );
+
a_toolbar.AddButton( new ToolBarButton('delete', '<inp2:m_phrase label="la_ToolTip_Delete" escape="1"/>',
function() {
std_delete_items('theme-file')
Index: core/admin_templates/users/image_edit.tpl
===================================================================
--- core/admin_templates/users/image_edit.tpl (revision 14123)
+++ core/admin_templates/users/image_edit.tpl (working copy)
@@ -19,7 +19,32 @@
}
) );
+ a_toolbar.AddButton( new ToolBarSeparator('sep1') );
+
+ a_toolbar.AddButton( new ToolBarButton('prev', '<inp2:m_phrase label="la_ToolTip_Prev" escape="1"/>', function() {
+ go_to_id('u-img', '<inp2:u-img_PrevId/>');
+ }
+ ));
+
+ a_toolbar.AddButton( new ToolBarButton('next', '<inp2:m_phrase label="la_ToolTip_Next" escape="1"/>', function() {
+ go_to_id('u-img', '<inp2:u-img_NextId/>');
+ }
+ ));
+
a_toolbar.Render();
+
+ <inp2:m_if check="u-img_IsSingle">
+ a_toolbar.HideButton('prev');
+ a_toolbar.HideButton('next');
+ a_toolbar.HideButton('sep1');
+ <inp2:m_else/>
+ <inp2:m_if check="u-img_IsLast">
+ a_toolbar.DisableButton('next');
+ </inp2:m_if>
+ <inp2:m_if check="u-img_IsFirst">
+ a_toolbar.DisableButton('prev');
+ </inp2:m_if>
+ </inp2:m_if>
</script>
</td>
</tr>
Index: core/units/categories/categories_config.php
===================================================================
--- core/units/categories/categories_config.php (revision 14123)
+++ core/units/categories/categories_config.php (working copy)
@@ -179,7 +179,7 @@
'edit_status_labels' => Array ('c-img' => '!la_title_Editing_Image!'),
'new_titlefield' => Array ('c-img' => ''),
'format' => "#c_status# '#c_titlefield#' - #c-img_status# '#c-img_titlefield#'",
- 'toolbar_buttons' => Array ('select', 'cancel'),
+ 'toolbar_buttons' => Array ('select', 'cancel', 'prev', 'next'),
),
'relations_edit' => Array (
@@ -187,7 +187,7 @@
'new_status_labels' => Array ('c-rel' => "!la_title_Adding_Relationship! '!la_title_New_Relationship!'"),
'edit_status_labels' => Array ('c-rel' => '!la_title_Editing_Relationship!'),
'format' => "#c_status# '#c_titlefield#' - #c-rel_status#",
- 'toolbar_buttons' => Array ('select', 'cancel'),
+ 'toolbar_buttons' => Array ('select', 'cancel', 'prev', 'next'),
),
'related_searches_edit' => Array (
@@ -195,7 +195,7 @@
'new_status_labels' => Array ('c-search' => "!la_title_Adding_RelatedSearch_Keyword!"),
'edit_status_labels' => Array ('c-search' => '!la_title_Editing_RelatedSearch_Keyword!'),
'format' => "#c_status# '#c_titlefield#' - #c-search_status#",
- 'toolbar_buttons' => Array ('select', 'cancel'),
+ 'toolbar_buttons' => Array ('select', 'cancel', 'prev', 'next'),
),
'edit_content' => Array ('format' => '!la_EditingContent!'),
Index: core/units/forms/forms/forms_config.php
===================================================================
--- core/units/forms/forms/forms_config.php (revision 14123)
+++ core/units/forms/forms/forms_config.php (working copy)
@@ -101,7 +101,7 @@
'edit_status_labels' => Array('formflds'=>'!la_title_Editing_FormField!'),
'new_titlefield' => Array('formflds'=>''),
'format' => "#form_status# '#form_titlefield#' - #formflds_status# '#formflds_titlefield#'",
- 'toolbar_buttons' => Array('select', 'cancel'),
+ 'toolbar_buttons' => Array('select', 'cancel', 'prev', 'next'),
),
'tree_submissions' => Array (
Index: core/units/languages/languages_config.php
===================================================================
--- core/units/languages/languages_config.php (revision 14123)
+++ core/units/languages/languages_config.php (working copy)
@@ -102,6 +102,7 @@
'email_messages_edit' => Array (
'prefixes' => Array ('lang', 'emailevents'),
'format' => "#lang_status# '#lang_titlefield#' - !la_title_EditingEmailEvent! '#emailevents_titlefield#'",
+ 'toolbar_buttons' => Array ('select', 'cancel', 'prev', 'next'),
),
// for separate language list
'languages_list_st' => Array (
Index: core/units/themes/themes_config.php
===================================================================
--- core/units/themes/themes_config.php (revision 14123)
+++ core/units/themes/themes_config.php (working copy)
@@ -68,7 +68,7 @@
'themes_edit_files' => Array(
'prefixes' => Array('theme', 'theme-file_List'), 'format' => "#theme_status# '#theme_titlefield#' - !la_title_ThemeFiles!",
- 'toolbar_buttons' => Array('select', 'cancel', 'prev', 'next', 'view', 'dbl-click'),
+ 'toolbar_buttons' => Array('select', 'cancel', 'prev', 'next', 'edit', 'delete', 'view', 'dbl-click'),
),
'theme_file_edit' => Array (
@@ -77,7 +77,7 @@
'edit_status_labels' => Array ('theme-file' => '!la_title_EditingThemeFile!'),
'new_titlefield' => Array ('theme-file' => '!la_title_NewThemeFile!'),
'format' => "#theme_status# '#theme_titlefield#' - #theme-file_status# '#theme-file_titlefield#'",
- 'toolbar_buttons' => Array('select', 'cancel', 'reset_edit'),
+ 'toolbar_buttons' => Array('select', 'cancel', 'reset_edit', 'prev', 'next'),
),
'block_edit' => Array('prefixes' => Array('theme-file'), 'format' => "!la_title_EditingThemeFile! '#theme-file_titlefield#'"),
Index: core/units/users/users_config.php
===================================================================
--- core/units/users/users_config.php (revision 14123)
+++ core/units/users/users_config.php (working copy)
@@ -195,7 +195,7 @@
'edit_status_labels' => Array ('u-img' => '!la_title_Editing_Image!'),
'new_titlefield' => Array ('u-img' => '!la_title_New_Image!'),
'format' => "#u_status# '#u_titlefield#' - #u-img_status# '#u-img_titlefield#'",
- 'toolbar_buttons' => Array ('select', 'cancel'),
+ 'toolbar_buttons' => Array ('select', 'cancel', 'prev', 'next'),
),
'user_select' => Array (
|