# HG changeset patch # User Arseniy Terekhin <senyai@gmail.com> # Date 1366554748 -14400 # Sun Apr 21 18:32:28 2013 +0400 # Branch extradoc # Node ID 760313371d05799b4189f1ce5facacda6c6839c1 # Parent ed89fe5e5c7beb8e17e1eef39ca37595e525c790 Donation sidebar fix for ie diff --git a/js/script2.js b/js/script2.js --- a/js/script2.js +++ b/js/script2.js @@ -1,28 +1,21 @@ +function set_sidebar_html(html) { + $("#sidebar").html(html); +} function py3k_donate() { - $.get("don1.html#", function (html) { - $("#sidebar").html(html); - }); + $.get("don1.html", set_sidebar_html); } function stm_donate() { - $.get("don4.html#", function (html) { - $("#sidebar").html(html); - }); + $.get("don4.html", set_sidebar_html); } function general_donate() { - $.get("don2.html#", function (html) { - $("#sidebar").html(html); - }); + $.get("don2.html", set_sidebar_html); } function numpy_donate() { - $.get("don3.html#", function (html) { - $("#sidebar").html(html); - }); + $.get("don3.html", set_sidebar_html); } -$(document).ready(function() { - stm_donate(); -}); \ No newline at end of file +$(document).ready(stm_donate);