-fixed binding of on-click handler for json-toggler, - fixed css-class naming

This commit is contained in:
dtonder 2015-03-29 15:06:58 +02:00
parent d73531aeb5
commit 01f4efc4e0
2 changed files with 2 additions and 2 deletions

View File

@ -617,7 +617,7 @@ form .request-content {
padding:20px; padding:20px;
} }
.json-toggle-section { .json-collapse-section {
color: #660; color: #660;
cursor: pointer; cursor: pointer;
} }

View File

@ -586,7 +586,7 @@
} }
}); });
$('.json-collapse-section').on('click', function(){ $(document).on('click', '.json-collapse-section', function() {
var openChar = $(this).data('section-open-character'), var openChar = $(this).data('section-open-character'),
closingChar = (openChar == '{' ? '}' : ']'); closingChar = (openChar == '{' ? '}' : ']');
if ($(this).next('.json-collapse-content').is(':visible')) { if ($(this).next('.json-collapse-content').is(':visible')) {