mirror of
https://github.com/processwire/processwire.git
synced 2025-08-13 18:24:57 +02:00
Fix minor JS issue where ajax-loaded inputfields didn't have the toggle arrow icon properly adjusting for open/closed state
This commit is contained in:
@@ -989,6 +989,8 @@ function InputfieldStates($target) {
|
||||
|
||||
$.get(ajaxURL, function(data) {
|
||||
$li.removeClass('InputfieldAjaxLoading InputfieldStateCollapsed');
|
||||
var $icon = $li.children('.InputfieldHeader').find('.toggle-icon');
|
||||
if($icon.length) $icon.toggleClass($icon.attr('data-to'));
|
||||
$parent.replaceWith($(data)).hide();
|
||||
$parent.slideDown();
|
||||
var $inputfields = $li.find('.Inputfield');
|
||||
|
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user