Skip to content

Commit

Permalink
[#2618] Inline js class helper
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Aug 16, 2012
1 parent 0fd8d99 commit f8dab60
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
10 changes: 10 additions & 0 deletions ckan/public/base/javascript/resource.config
Expand Up @@ -2,9 +2,19 @@

main = vendor/jquery.js

[custom render order]

apply_html_class = 1

[inline scripts]

apply_html_class =
document.getElementsByTagName('html')[0].className += ' js';

[groups]

main =
apply_html_class
plugins/jquery.inherit.js
plugins/jquery.proxy-all.js
plugins/jquery.url-helpers.js
Expand Down
3 changes: 0 additions & 3 deletions ckan/templates/base.html
Expand Up @@ -12,9 +12,6 @@

{# Allows custom attributes to be added to the <head> tag #}
<head{% block headtag %}{% endblock %}>
{# Append a .js class to the html element #}
<script>document.getElementsByTagName('html')[0].className += ' js';</script>

{#
Add custom meta tags to the page. Call super() to get the default tags
such as charset, viewport and generator.
Expand Down

0 comments on commit f8dab60

Please sign in to comment.