Fix typo in class 'icon-expended' (#36149).

Patch by Bernhard Rohloff.

git-svn-id: http://svn.redmine.org/redmine/trunk@21275 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Marius Balteanu
2021-11-08 20:14:49 +00:00
parent c24b019c62
commit 1245708ba7
16 changed files with 28 additions and 28 deletions

View File

@@ -31,7 +31,7 @@ function toggleRowGroup(el) {
var tr = $(el).parents('tr').first();
var n = tr.next();
tr.toggleClass('open');
$(el).toggleClass('icon-expended icon-collapsed');
$(el).toggleClass('icon-expanded icon-collapsed');
while (n.length && !n.hasClass('group')) {
n.toggle();
n = n.next('tr');
@@ -43,7 +43,7 @@ function collapseAllRowGroups(el) {
tbody.children('tr').each(function(index) {
if ($(this).hasClass('group')) {
$(this).removeClass('open');
$(this).find('.expander').switchClass('icon-expended', 'icon-collapsed');
$(this).find('.expander').switchClass('icon-expanded', 'icon-collapsed');
} else {
$(this).hide();
}
@@ -55,7 +55,7 @@ function expandAllRowGroups(el) {
tbody.children('tr').each(function(index) {
if ($(this).hasClass('group')) {
$(this).addClass('open');
$(this).find('.expander').switchClass('icon-collapsed', 'icon-expended');
$(this).find('.expander').switchClass('icon-collapsed', 'icon-expanded');
} else {
$(this).show();
}
@@ -74,7 +74,7 @@ function toggleAllRowGroups(el) {
function toggleFieldset(el) {
var fieldset = $(el).parents('fieldset').first();
fieldset.toggleClass('collapsed');
fieldset.children('legend').toggleClass('icon-expended icon-collapsed');
fieldset.children('legend').toggleClass('icon-expanded icon-collapsed');
fieldset.children('div').toggle();
}
@@ -550,12 +550,12 @@ function scmEntryClick(id, url) {
var el = $('#'+id);
if (el.hasClass('open')) {
collapseScmEntry(id);
el.find('.expander').switchClass('icon-expended', 'icon-collapsed');
el.find('.expander').switchClass('icon-expanded', 'icon-collapsed');
el.addClass('collapsed');
return false;
} else if (el.hasClass('loaded')) {
expandScmEntry(id);
el.find('.expander').switchClass('icon-collapsed', 'icon-expended');
el.find('.expander').switchClass('icon-collapsed', 'icon-expanded');
el.removeClass('collapsed');
return false;
}
@@ -568,7 +568,7 @@ function scmEntryClick(id, url) {
success: function(data) {
el.after(data);
el.addClass('open').addClass('loaded').removeClass('loading');
el.find('.expander').switchClass('icon-collapsed', 'icon-expended');
el.find('.expander').switchClass('icon-collapsed', 'icon-expanded');
}
});
return true;