Widget:indexSorterGrouper: Difference between revisions
Jump to navigation
Jump to search
m Some layouting |
Added name switching when switching servers |
||
Line 274: | Line 274: | ||
$('.card-bg-small.unreleased').removeClass('unreleased'); | $('.card-bg-small.unreleased').removeClass('unreleased'); | ||
$('.card-bg-small'). | $('.card-bg-small').each(function() { | ||
var element = $(this); | |||
var nameToSet = ""; | |||
if (element.is("[data-server-" + activeServer + "]")) { | |||
nameToSet = element.attr('data-server-' + activeServer); | |||
} else { | |||
element.addClass('unreleased'); | |||
nameToSet = element.attr('data-server-wiki'); | |||
} | |||
element.find('span').first().text(nameToSet); | |||
}); | |||
$(butt).addClass("enabled"); | $(butt).addClass("enabled"); |
Revision as of 15:06, 7 October 2018
Released on this server: