mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-03-10 09:36:10 +03:00
-fixed binding of on-click handler for json-toggler, - fixed css-class naming
This commit is contained in:
parent
d73531aeb5
commit
01f4efc4e0
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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')) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user