Index: branches/5.2.x/core/admin_templates/config/config_general.tpl =================================================================== diff -u -N -r14637 -r14965 --- branches/5.2.x/core/admin_templates/config/config_general.tpl (.../config_general.tpl) (revision 14637) +++ branches/5.2.x/core/admin_templates/config/config_general.tpl (.../config_general.tpl) (revision 14965) @@ -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