Index: branches/5.2.x/core/admin_templates/categories/categories_edit.tpl =================================================================== diff -u -N -r14244 -r14474 --- branches/5.2.x/core/admin_templates/categories/categories_edit.tpl (.../categories_edit.tpl) (revision 14244) +++ branches/5.2.x/core/admin_templates/categories/categories_edit.tpl (.../categories_edit.tpl) (revision 14474) @@ -146,13 +146,30 @@ - + + + + +
+ + onchange="update_checkbox(this, document.getElementById(''));" onclick="reflectDirectLink();"/> +
+ + + +
+ +
+
+ @@ -270,6 +287,25 @@ $(document).ready(reflectPageType); + + + function reflectDirectLink() { + $( get_control($field_mask, 'DirectLinkEnabled', undefined, '_cb') ).change( + function ($e) { + if ( $(this).attr('checked') ) { + $('#direct_link').show(); + } + else { + $('#direct_link').hide(); + } + } + ); + } + + $(document).ready(reflectDirectLink); + + + Application.setHook( 'c:*', function () {