Permalink
Browse files

Make integration test pass.

  • Loading branch information...
metaskills committed May 12, 2011
1 parent 77e0c67 commit d99d31038c4c0e8e4f647ab2feb5c84cc8203db9
Showing with 26 additions and 2 deletions.
  1. +12 −0 app/views/layouts/application.html.erb
  2. +14 −2 public/javascripts/application.js
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>Holygrail Rails 2.3</title>
+ <%= javascript_include_tag 'prototype', 'application' %>
+</head>
+<body>
+
+<%= yield %>
+
+</body>
+</html>
@@ -1,2 +1,14 @@
-// Place your application-specific JavaScript functions and classes here
-// This file is automatically included by javascript_include_tag :defaults
+
+document.observe('dom:loaded',function(){
+
+ var h1DemoIndex = $('demoIndex');
+ if (h1DemoIndex) {
+ h1DemoIndex.observe('click',function(){
+ h1DemoIndex.remove();
+ });
+ };
+
+
+});
+
+

0 comments on commit d99d310

Please sign in to comment.