diff options
author | Johan Sørensen <johan@johansorensen.com> | 2009-08-28 11:26:00 +0200 |
---|---|---|
committer | Johan Sørensen <johan@johansorensen.com> | 2009-09-03 12:15:38 +0200 |
commit | 4dd2e475ea2d6ede184702b5466519a87c2088ab (patch) | |
tree | 9c4fdc30d1bef6ca8671cb72e7ff76bf2932e0e4 /app/views/blobs | |
parent | 8bf2d39fee24cc8bd363a851a5e5c8e6dba73484 (diff) | |
download | gitorious-mainline-outdated-4dd2e475ea2d6ede184702b5466519a87c2088ab.zip gitorious-mainline-outdated-4dd2e475ea2d6ede184702b5466519a87c2088ab.tar.gz gitorious-mainline-outdated-4dd2e475ea2d6ede184702b5466519a87c2088ab.tar.bz2 |
Switch to using jQuery for all javascript related things
Using jQuery gives us some shorter and more to the point javascript,
along with being a first step towards making gitorious use more
unobtrusive JS. This also removed the auto_complete plugin, since it's
easier to do by hand with jQuery.
Furthermore, most of the rjs templates have been replaced with
functions in application.js
Diffstat (limited to 'app/views/blobs')
-rw-r--r-- | app/views/blobs/show.html.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/blobs/show.html.erb b/app/views/blobs/show.html.erb index 4042b53..5193be2 100644 --- a/app/views/blobs/show.html.erb +++ b/app/views/blobs/show.html.erb @@ -31,7 +31,7 @@ <%= javascript_include_tag("prettify/lang-#{hl}.js", :cache => false) -%> <% end -%> <script type="text/javascript" charset="utf-8"> - Event.observe(window, "dom:loaded", function(e){ + $(document).ready(function(){ prettyPrint(); }); </script> |