Index: admin_templates/config/config_general.tpl =================================================================== --- admin_templates/config/config_general.tpl (revision 14949) +++ admin_templates/config/config_general.tpl (working copy) @@ -5,79 +5,94 @@ - - - - - + var a_toolbar = new ToolBar(); + + a_toolbar.AddButton( + new ToolBarButton( + 'select', + '', + function() { + submit_event('conf',''); + } + ) + ); + + a_toolbar.AddButton( + new ToolBarButton( + 'cancel', + '', + function() { + submit_event('conf','OnCancel'); + } + ) + ); + + + + a_toolbar.Render(); + + + +
- -
@@ -129,6 +144,13 @@ $menu_frame.parent.location.href = $menu_frame.parent.location.href; + + Application.setHook( + 'conf:*', + function ($event) { + $event.status = $event.Name == 'OnCancel' ? true : validate_password_fields(); + } + ); \ No newline at end of file Index: admin_templates/config/config_universal.tpl =================================================================== --- admin_templates/config/config_universal.tpl (revision 14949) +++ admin_templates/config/config_universal.tpl (working copy) @@ -6,92 +6,94 @@ - - - - - + a_toolbar.AddButton( + new ToolBarButton( + 'select', + '', + function () { + submit_event('conf', ''); + } + ) + ); + + a_toolbar.AddButton( + new ToolBarButton( + 'cancel', + '', + function () { + submit_event('conf', 'OnCancel'); + } + ) + ); + + + + a_toolbar.Render(); + + + +
- -
@@ -113,6 +115,13 @@ $menu_frame.parent.location.href = $menu_frame.parent.location.href; + + Application.setHook( + 'conf:*', + function ($event) { + $event.status = $event.Name == 'OnCancel' ? true : validate_password_fields(); + } + ); \ No newline at end of file Index: admin_templates/incs/config_blocks.tpl =================================================================== --- admin_templates/incs/config_blocks.tpl (revision 14949) +++ admin_templates/incs/config_blocks.tpl (working copy) @@ -3,13 +3,13 @@ - + - +  ">