From f8dab60fc4675a10d9b66f356aa9ff8402cfac6c Mon Sep 17 00:00:00 2001 From: tobes Date: Thu, 16 Aug 2012 16:24:12 +0100 Subject: [PATCH] [#2618] Inline js class helper --- ckan/public/base/javascript/resource.config | 10 ++++++++++ ckan/templates/base.html | 3 --- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/ckan/public/base/javascript/resource.config b/ckan/public/base/javascript/resource.config index 38931183ce9..5b715c05d4e 100644 --- a/ckan/public/base/javascript/resource.config +++ b/ckan/public/base/javascript/resource.config @@ -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 diff --git a/ckan/templates/base.html b/ckan/templates/base.html index 2c2b4f12138..f3c364b61bd 100644 --- a/ckan/templates/base.html +++ b/ckan/templates/base.html @@ -12,9 +12,6 @@ {# Allows custom attributes to be added to the tag #} - {# Append a .js class to the html element #} - - {# Add custom meta tags to the page. Call super() to get the default tags such as charset, viewport and generator.