|
@@ -1,20 +1,20 @@
|
|
/*
|
|
/*
|
|
CodeRed CMS (https://www.coderedcorp.com/cms/)
|
|
CodeRed CMS (https://www.coderedcorp.com/cms/)
|
|
-Copyright 2018-2019 CodeRed LLC
|
|
|
|
|
|
+Copyright 2018-2021 CodeRed LLC
|
|
License: https://github.com/coderedcorp/coderedcms/blob/dev/LICENSE
|
|
License: https://github.com/coderedcorp/coderedcms/blob/dev/LICENSE
|
|
@license magnet:?xt=urn:btih:c80d50af7d3db9be66a4d0a86db0286e4fd33292&dn=bsd-3-clause.txt BSD-3-Clause
|
|
@license magnet:?xt=urn:btih:c80d50af7d3db9be66a4d0a86db0286e4fd33292&dn=bsd-3-clause.txt BSD-3-Clause
|
|
*/
|
|
*/
|
|
|
|
|
|
$(document).ready(function(){
|
|
$(document).ready(function(){
|
|
$(document).on('click', '.codered-collapsible button', function(){
|
|
$(document).on('click', '.codered-collapsible button', function(){
|
|
- var $fieldset = $(this).parent().find('fieldset');
|
|
|
|
|
|
+ var $target = $(this).parent().find('.codered-collapsible-target');
|
|
|
|
|
|
if (!$(this).parent().hasClass('collapsed')) {
|
|
if (!$(this).parent().hasClass('collapsed')) {
|
|
$(this).parent().addClass('collapsed');
|
|
$(this).parent().addClass('collapsed');
|
|
- $fieldset.hide('fast');
|
|
|
|
|
|
+ $target.hide('fast');
|
|
} else {
|
|
} else {
|
|
$(this).parent().removeClass('collapsed');
|
|
$(this).parent().removeClass('collapsed');
|
|
- $fieldset.show('fast');
|
|
|
|
|
|
+ $target.show('fast');
|
|
}
|
|
}
|
|
});
|
|
});
|
|
});
|
|
});
|