Index: branches/5.1.x/core/admin_templates/themes/template_edit.tpl =================================================================== diff -u -N -r12127 -r12657 --- branches/5.1.x/core/admin_templates/themes/template_edit.tpl (.../template_edit.tpl) (revision 12127) +++ branches/5.1.x/core/admin_templates/themes/template_edit.tpl (.../template_edit.tpl) (revision 12657) @@ -15,10 +15,19 @@ } ) ); - a_toolbar.AddButton( new ToolBarButton('cancel', '', function() { - submit_event('theme-file', 'OnGoBack'); + a_toolbar.AddButton( + new ToolBarButton( + 'cancel', + '', + function() { + + window_close(); + + submit_event('theme-file', 'OnGoBack'); + } - ) ); + ) + ); a_toolbar.Render(); @@ -39,7 +48,13 @@ - + + + + + + +