js: Code simplification.

This commit is contained in:
Brett Smith 2020-11-25 10:45:38 -05:00
parent 8ea3438885
commit e8ec7a33fb

View file

@ -97,10 +97,7 @@ $(document).ready(function() {
$(".supporter-type-selector a").removeClass("supporter-type-selector-selected");
$selectedLink.addClass("supporter-type-selector-selected");
$(".supporter-type-selection").hide();
var hashIndex = event.target.href.lastIndexOf('#');
if (hashIndex > -1) {
$(event.target.href.slice(hashIndex)).show();
}
$(event.target.hash).show();
$formCorrectionNeeded.addClass('hidden');
return false;
};