[Python-checkins] r88915 - tracker/instances/python-dev/html/issue.item.js
ezio.melotti
python-checkins at python.org
Thu Oct 27 07:31:35 CEST 2011
Author: ezio.melotti
Date: Thu Oct 27 07:31:35 2011
New Revision: 88915
Log:
Use $(document).ready instead of window.onload.
Modified:
tracker/instances/python-dev/html/issue.item.js
Modified: tracker/instances/python-dev/html/issue.item.js
==============================================================================
--- tracker/instances/python-dev/html/issue.item.js (original)
+++ tracker/instances/python-dev/html/issue.item.js Thu Oct 27 07:31:35 2011
@@ -1,4 +1,4 @@
-window.onload = function () {
+$(document).ready(function () {
// create the input button and use it to replace the span/placeholder --
// users without javascript won't notice anything.
// This might eventually be replaced by jquery
@@ -17,7 +17,7 @@
add_me_button.style.display = 'inline';
add_me_parent.replaceChild(add_me_button, add_me_span);
add_me_button.id = node_id;
-}
+})
function add_to_nosy(user) {
More information about the Python-checkins
mailing list