Changeset - 492de3eab3de
[Not reviewed]
0 1 0
Brett Smith (brett) - 4 years ago 2016-12-29 15:33:22
brett@sfconservancy.org
js: Rewrite #renew links to the Supporter page.

#renewal is the correct hash to use.
1 file changed with 5 insertions and 0 deletions:
0 comments (0 inline, 0 general)
www/conservancy/static/js/supporter-page.js
Show inline comments
...
 
@@ -12,6 +12,11 @@ var supportTypeSelector = function(supportTypeHash) {
 
var $window = $(window);
 

	
 
$window.load(function() {
 
    /* We've sometimes published links that say #renew instead of #renewal.
 
       Rewrite that to work as intended. */
 
    if (window.location.hash === "#renew") {
 
        window.location.hash = "#renewal";
 
    }
 
    var $selectorLink = supportTypeSelector(window.location.hash);
 
    if ($selectorLink.length > 0) {
 
        $window.scrollTop($selectorLink.offset().top);
0 comments (0 inline, 0 general)