Revision 23608
Added by Marius BĂLTEANU 3 months ago
branches/6.0-stable/app/assets/javascripts/application.js | ||
---|---|---|
66 | 66 |
tbody.children('tr').each(function(index) { |
67 | 67 |
if ($(this).hasClass('group')) { |
68 | 68 |
$(this).removeClass('open'); |
69 |
$(this).find('.expander').switchClass('icon-expanded', 'icon-collapsed'); |
|
70 |
updateSVGIcon($(this).find('.expander')[0], 'angle-right') |
|
69 |
var expander = $(this).find('.expander'); |
|
70 |
expander.switchClass('icon-expanded', 'icon-collapsed'); |
|
71 |
toggleExpendCollapseIcon(expander[0]); |
|
71 | 72 |
} else { |
72 | 73 |
$(this).hide(); |
73 | 74 |
} |
... | ... | |
79 | 80 |
tbody.children('tr').each(function(index) { |
80 | 81 |
if ($(this).hasClass('group')) { |
81 | 82 |
$(this).addClass('open'); |
82 |
$(this).find('.expander').switchClass('icon-collapsed', 'icon-expanded'); |
|
83 |
updateSVGIcon($(this).find('.expander')[0], 'angle-down') |
|
83 |
var expander = $(this).find('.expander'); |
|
84 |
expander.switchClass('icon-collapsed', 'icon-expanded'); |
|
85 |
toggleExpendCollapseIcon(expander[0]); |
|
84 | 86 |
} else { |
85 | 87 |
$(this).show(); |
86 | 88 |
} |
Also available in: Unified diff
Merge r23606 from trunk to 6.0-stable (#42369).