Skip to content

Commit 96f8325

Browse files
johanlundsspastorino
authored andcommitted
DHH forgot to remove JS, CSS in generated index.html [rails#5261 state:resolved]
Signed-off-by: Santiago Pastorino <[email protected]>
1 parent 1d1f810 commit 96f8325

File tree

1 file changed

+0
-23
lines changed
  • railties/lib/rails/generators/rails/app/templates/public

1 file changed

+0
-23
lines changed

railties/lib/rails/generators/rails/app/templates/public/index.html

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -151,19 +151,6 @@
151151
}
152152

153153

154-
#search {
155-
margin: 0;
156-
padding-top: 10px;
157-
padding-bottom: 10px;
158-
font-size: 11px;
159-
}
160-
#search input {
161-
font-size: 11px;
162-
margin: 2px;
163-
}
164-
#search-text {width: 170px}
165-
166-
167154
#sidebar ul {
168155
margin-left: 0;
169156
padding-left: 0;
@@ -194,16 +181,6 @@
194181
info.innerHTML = xhr.responseText;
195182
info.style.display = 'block'
196183
}
197-
198-
function prepend() {
199-
search = document.getElementById('search-text');
200-
text = search.value;
201-
search.value = 'site:rubyonrails.org ' + text;
202-
}
203-
204-
window.onload = function() {
205-
document.getElementById('search-text').value = '';
206-
}
207184
</script>
208185
</head>
209186
<body>

0 commit comments

Comments
 (0)