Index: branches/5.1.x/units/links/links_config.php =================================================================== diff -u -N -r14138 -r14153 --- branches/5.1.x/units/links/links_config.php (.../links_config.php) (revision 14138) +++ branches/5.1.x/units/links/links_config.php (.../links_config.php) (revision 14153) @@ -1,6 +1,6 @@ Array ('l-img' => '!la_title_Editing_Image!'), 'new_titlefield' => Array ('l-img' => '!la_title_New_Image!'), 'format' => "#l_status# '#l_titlefield#' - #l-img_status# '#l-img_titlefield#'", - 'toolbar_buttons' => Array ('select', 'cancel'), + 'toolbar_buttons' => Array ('select', 'cancel', 'prev', 'next'), ), 'file_edit' => Array ( @@ -236,23 +236,23 @@ 'edit_status_labels' => Array ('l-file' => '!la_title_EditingFile!'), 'new_titlefield' => Array ('l-file' => '!la_title_NewFile!'), 'format' => "#l_status# '#l_titlefield#' - #l-file_status# '#l-file_titlefield#'", - 'toolbar_buttons' => Array ('select', 'cancel'), + 'toolbar_buttons' => Array ('select', 'cancel', 'prev', 'next'), ), 'reviews_edit' => Array ( 'prefixes' => Array ('l', 'l-rev'), 'new_status_labels' => Array ('l-rev' =>"!la_title_Adding_Review! '!la_title_New_Review!'"), 'edit_status_labels' => Array ('l-rev' => '!la_title_Editing_Review!'), 'format' => "#l_status# '#l_titlefield#' - #l-rev_status#", - 'toolbar_buttons' => Array ('select', 'cancel'), + 'toolbar_buttons' => Array ('select', 'cancel', 'prev', 'next'), ), 'relations_edit' => Array ( 'prefixes' => Array ('l', 'l-rel'), 'new_status_labels' => Array ('l-rel' =>"!la_title_Adding_Relationship! '!la_title_New_Relationship!'"), 'edit_status_labels' => Array ('l-rel' => '!la_title_Editing_Relationship!'), 'format' => "#l_status# '#l_titlefield#' - #l-rel_status#", - 'toolbar_buttons' => Array ('select', 'cancel'), + 'toolbar_buttons' => Array ('select', 'cancel', 'prev', 'next'), ), 'links_export' => Array ('format' => '!la_title_LinksExport!'), @@ -465,15 +465,15 @@ 'CachedReviewsQty' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), 'CreatedById' => Array ( 'type' => 'int', - 'formatter' => 'kLEFTFormatter', + 'formatter' => 'kLEFTFormatter', 'options' => Array (USER_ROOT => 'root', USER_GUEST => 'Guest'), - 'left_sql' => 'SELECT %s FROM ' . TABLE_PREFIX . 'PortalUser + 'left_sql' => 'SELECT %s FROM ' . TABLE_PREFIX . 'PortalUser WHERE `%s` = \'%s\'', 'left_key_field' => 'PortalUserId', 'left_title_field' => 'Login', 'error_msgs' => Array ('invalid_option' => '!la_error_UserNotFound!'), 'sample_value' => 'Guest', 'required' => 1, 'default' => NULL, - ), + ), 'ModifiedById' => Array ('type' => 'int', 'formatter' => 'kLEFTFormatter', 'error_msgs' => Array ('invalid_option' => '!la_error_UserNotFound!'), 'options' => Array (USER_ROOT => 'root', USER_GUEST => 'Guest'), 'left_sql' => 'SELECT %s FROM '.TABLE_PREFIX.'PortalUser WHERE `%s` = \'%s\'', 'left_key_field' => 'PortalUserId', 'left_title_field' => 'Login', 'default' => NULL), 'Priority' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), 'Status' => Array ( Index: branches/5.1.x/admin_templates/links/relations_edit.tpl =================================================================== diff -u -N -r13947 -r14153 --- branches/5.1.x/admin_templates/links/relations_edit.tpl (.../relations_edit.tpl) (revision 13947) +++ branches/5.1.x/admin_templates/links/relations_edit.tpl (.../relations_edit.tpl) (revision 14153) @@ -17,7 +17,32 @@ } ) ); + a_toolbar.AddButton( new ToolBarSeparator('sep1') ); + + a_toolbar.AddButton( new ToolBarButton('prev', '', function() { + go_to_id('l-rel', ''); + } + )); + + a_toolbar.AddButton( new ToolBarButton('next', '', function() { + go_to_id('l-rel', ''); + } + )); + a_toolbar.Render(); + + + a_toolbar.HideButton('prev'); + a_toolbar.HideButton('next'); + a_toolbar.HideButton('sep1'); + + + a_toolbar.DisableButton('next'); + + + a_toolbar.DisableButton('prev'); + + Index: branches/5.1.x/admin_templates/links/file_edit.tpl =================================================================== diff -u -N -r13947 -r14153 --- branches/5.1.x/admin_templates/links/file_edit.tpl (.../file_edit.tpl) (revision 13947) +++ branches/5.1.x/admin_templates/links/file_edit.tpl (.../file_edit.tpl) (revision 14153) @@ -17,7 +17,32 @@ } ) ); + a_toolbar.AddButton( new ToolBarSeparator('sep1') ); + + a_toolbar.AddButton( new ToolBarButton('prev', '', function() { + go_to_id('l-file', ''); + } + )); + + a_toolbar.AddButton( new ToolBarButton('next', '', function() { + go_to_id('l-file', ''); + } + )); + a_toolbar.Render(); + + + a_toolbar.HideButton('prev'); + a_toolbar.HideButton('next'); + a_toolbar.HideButton('sep1'); + + + a_toolbar.DisableButton('next'); + + + a_toolbar.DisableButton('prev'); + + Index: branches/5.1.x/admin_templates/links/review_edit.tpl =================================================================== diff -u -N -r13947 -r14153 --- branches/5.1.x/admin_templates/links/review_edit.tpl (.../review_edit.tpl) (revision 13947) +++ branches/5.1.x/admin_templates/links/review_edit.tpl (.../review_edit.tpl) (revision 14153) @@ -17,6 +17,18 @@ } ) ); + a_toolbar.AddButton( new ToolBarSeparator('sep1') ); + + a_toolbar.AddButton( new ToolBarButton('prev', '', function() { + go_to_id('l-rev', ''); + } + )); + + a_toolbar.AddButton( new ToolBarButton('next', '', function() { + go_to_id('l-rev', ''); + } + )); + a_toolbar.Render(); Index: branches/5.1.x/admin_templates/links/images_edit.tpl =================================================================== diff -u -N -r13947 -r14153 --- branches/5.1.x/admin_templates/links/images_edit.tpl (.../images_edit.tpl) (revision 13947) +++ branches/5.1.x/admin_templates/links/images_edit.tpl (.../images_edit.tpl) (revision 14153) @@ -19,7 +19,32 @@ } ) ); + a_toolbar.AddButton( new ToolBarSeparator('sep1') ); + + a_toolbar.AddButton( new ToolBarButton('prev', '', function() { + go_to_id('l-img', ''); + } + )); + + a_toolbar.AddButton( new ToolBarButton('next', '', function() { + go_to_id('l-img', ''); + } + )); + a_toolbar.Render(); + + + a_toolbar.HideButton('prev'); + a_toolbar.HideButton('next'); + a_toolbar.HideButton('sep1'); + + + a_toolbar.DisableButton('next'); + + + a_toolbar.DisableButton('prev'); + +