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");
|
||||
$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;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue