js: Code simplification.
This commit is contained in:
parent
8ea3438885
commit
e8ec7a33fb
1 changed files with 1 additions and 4 deletions
|
@ -97,10 +97,7 @@ $(document).ready(function() {
|
||||||
$(".supporter-type-selector a").removeClass("supporter-type-selector-selected");
|
$(".supporter-type-selector a").removeClass("supporter-type-selector-selected");
|
||||||
$selectedLink.addClass("supporter-type-selector-selected");
|
$selectedLink.addClass("supporter-type-selector-selected");
|
||||||
$(".supporter-type-selection").hide();
|
$(".supporter-type-selection").hide();
|
||||||
var hashIndex = event.target.href.lastIndexOf('#');
|
$(event.target.hash).show();
|
||||||
if (hashIndex > -1) {
|
|
||||||
$(event.target.href.slice(hashIndex)).show();
|
|
||||||
}
|
|
||||||
$formCorrectionNeeded.addClass('hidden');
|
$formCorrectionNeeded.addClass('hidden');
|
||||||
return false;
|
return false;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue