Added extra JS to deterine which element to highlight in the case where all fieldsets of a stacked inline are set to collapse.
This commit is contained in:
@@ -40,7 +40,9 @@
|
||||
type: 'POST',
|
||||
data: { indexes : indexes.join(',') },
|
||||
success: function() {
|
||||
ui.item.find('.form-row').effect('highlight', {}, 1000).removeAttr('style');
|
||||
var fieldsets = ui.item.find('fieldset'),
|
||||
highlightedSelector = fieldsets.filter('.collapsed').length === fieldsets.length ? 'h3' : '.form-row';
|
||||
ui.item.find(highlightedSelector).effect('highlight', {}, 1000);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user