aboutsummaryrefslogtreecommitdiff
path: root/web/views
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2012-01-25 20:54:10 +0100
committerJochen Topf <jochen@topf.org>2012-01-25 20:54:10 +0100
commit28d7a98cabf28463c63df74cdfe1d30dfdb5fbd8 (patch)
treef0c22994b24c53eb11afb944a0e1a453980a9190 /web/views
parent1421956f528c8c1053e1593c633fc20f3407737e (diff)
downloadtaginfo-28d7a98cabf28463c63df74cdfe1d30dfdb5fbd8.tar
taginfo-28d7a98cabf28463c63df74cdfe1d30dfdb5fbd8.tar.gz
Javascript cleanup for homepage
Diffstat (limited to 'web/views')
-rw-r--r--web/views/index.erb11
1 files changed, 1 insertions, 10 deletions
diff --git a/web/views/index.erb b/web/views/index.erb
index d324f00..bf71425 100644
--- a/web/views/index.erb
+++ b/web/views/index.erb
@@ -37,13 +37,4 @@
</td>
</tr>
</table>
-<% javascript do
- JS.raw('function tagcloud_data() { return ' + @tags.map{ |tag| [tag['key'], tagcloud_size(tag)] }.to_json.gsub(/\],/, "],\n")) + "; }\n" +
- JS.raw(<<"JAVASCRIPT")
-function page_init() {
- jQuery(window).resize(resize_home);
- resize_home();
-}
-JAVASCRIPT
-end
-%>
+<% javascript "#{ r18n.locale.code }/index" %>