Defect #938
完了Do not use window.onload
100%
説明
Using window.onload
breaks other plugins. Please use Event.observe(window, 'load', function(){ codeHere; });
instead. Thanks!
Scott Duensing さんが約12年前に更新
Basically anything else that uses window.onload
is going to have issues. redmine_git_hosting was the one I had problems with. It also was using window.onload
directly (but has since been fixed). Only one method can be assigned to window.onload
. Without looking for an existing method to be there and then chaining to it after your own is called, bad things can happen. That is what Event.observe
is designed to prevent. See: http://www.prototypejs.org/api/event/observe
Thanks for your plugin!
Scott Duensing さんが約12年前に更新
Arrrgh! Sorry! I went back to look a second time and it seems I was wrong. It's not your plugin causing the problem - it appears to be part of Redmine itself. I'll follow up with them.
Sorry for the confusion and wasting your time. Thanks again for the plugin!