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