Author: Armin Rigo <ar...@tunes.org> Branch: extradoc Changeset: r472:e71408289534 Date: 2014-01-29 23:00 +0100 http://bitbucket.org/pypy/pypy.org/changeset/e71408289534/
Log: The right column should select by default "Donate towards xxx" if we are visiting the page "xxxdonate.html". Otherwise, we get confusing results when changing the right-column subpage by clicking on "Donate towards xxx": when we click "read proposal", it always resets the right-column back to STM. diff --git a/js/script2.js b/js/script2.js --- a/js/script2.js +++ b/js/script2.js @@ -18,4 +18,10 @@ $.get("don3.html", set_sidebar_html); } -$(document).ready(stm_donate); +if (location.href.indexOf("numpydonate.html") >= 0) + f = numpy_donate; +else if (location.href.indexOf("py3donate.html") >= 0) + f = py3k_donate; +else + f = stm_donate; +$(document).ready(f); _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit