diff --git a/Resources/public/css/screen.css b/Resources/public/css/screen.css index 6a49cce..124e76e 100644 --- a/Resources/public/css/screen.css +++ b/Resources/public/css/screen.css @@ -617,7 +617,7 @@ form .request-content { padding:20px; } -.json-toggle-section { +.json-collapse-section { color: #660; cursor: pointer; } diff --git a/Resources/views/layout.html.twig b/Resources/views/layout.html.twig index c4184b5..ef5487f 100755 --- a/Resources/views/layout.html.twig +++ b/Resources/views/layout.html.twig @@ -586,7 +586,7 @@ } }); - $('.json-collapse-section').on('click', function(){ + $(document).on('click', '.json-collapse-section', function() { var openChar = $(this).data('section-open-character'), closingChar = (openChar == '{' ? '}' : ']'); if ($(this).next('.json-collapse-content').is(':visible')) {