Permalink
Browse files

Minor JavaScript tweaks

  • Loading branch information...
1 parent 50c753a commit 698f551988a7cc59503bfa2b18b3ef12273dcd2d @rnhurt committed Aug 26, 2009
Showing with 5 additions and 6 deletions.
  1. +1 −2 app/views/courses/modify.rjs
  2. +4 −4 app/views/layouts/application.html.erb
@@ -1,10 +1,9 @@
# This script updates the page whenever a student is enrolled or un-enrolled
# from a course. It also provides a little visual feedback if the student
# is already enrolled in the course
-
page.replace_html 'enrolled_students', { :partial => 'enrolled_students' }
# Only highlight a student when we add it, not when we remove it
-page.visual_effect :highlight, @student.id.to_s, :duration => 3 if @add
+#page.visual_effect :highlight, @student.id.to_s, :duration => 3 if @add
@@ -54,16 +54,16 @@
</div>
</div>
- <%= javascript_include_tag "http://ajax.googleapis.com/ajax/libs/prototype/1.6.0.3/prototype.js" -%>
- <%= javascript_include_tag "http://ajax.googleapis.com/ajax/libs/scriptaculous/1.8.2/scriptaculous.js" -%>
+ <%= javascript_include_tag "http://ajax.googleapis.com/ajax/libs/prototype/1.6.0.3/prototype" -%>
+ <%= javascript_include_tag "http://ajax.googleapis.com/ajax/libs/scriptaculous/1.8.2/scriptaculous" -%>
<%= javascript_include_tag 'livepipe', 'tabs', 'slider', 'scal' -%>
<%= javascript_include_tag "tablekit" -%>
- <% javascript_include_tag do %>
+ <% javascript_tag do %>
TableKit.options.rowEvenClass = 'even';
TableKit.options.rowOddClass = 'odd';
<% end %>
<%= javascript_include_tag "application" -%>
<%= @content_for_page_footer -%>
</body>
-</html>
+</html>

0 comments on commit 698f551

Please sign in to comment.