Commit c7aa2023 authored by tinogo's avatar tinogo

minor refactoring

parent 8d1befc9
jQuery(document).ready(function ($) {
$(':checkbox[name="create"]').on('click',function () {
var $elem = $('#create-menu-item-container');
if ($(this).is(':checked')) {
$elem.show();
} else {
$elem.hide();
}
}).triggerHandler('click');
});
\ No newline at end of file
jQuery(document).ready(function ($) {
$(':checkbox[name="create"]').on('click', function () {
$('#create-menu-item-container').toggle($(this).is(':checked'));
}).triggerHandler('click');
});
......@@ -26,6 +26,6 @@
</div>
{include file="asset:System/Partials/form_group.submit.tpl" form_token=$form_token back_url={uri args="acp/articles"}}
{javascripts}
{include_js module="articles" file="admin/acp"}
{include_js module="articles" file="admin/index.create"}
{/javascripts}
{/block}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment