Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Add Modernizr

Paweł Kowalewskib003edc283ad
diff --git a/Gruntfile.js b/Gruntfile.js
index 84b48e71e3..d33fe3bb18 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -162,6 +162,9 @@ module.exports = function(grunt) {
"saleor/static/js_src/dashboard.js",
"saleor/static/components/dotdotdot/src/js/jquery.dotdotdot.js",
"saleor/static/components/jquery.equalheights/jquery.equalheights.js"
+ ],
+ "saleor/static/js/dashboard-head.js": [
+ "saleor/static/components/modernizr/modernizr.js"
]
}
}
diff --git a/bower.json b/bower.json
index 1c19978265..accfb0d4b0 100644
--- a/bower.json
+++ b/bower.json
@@ -17,6 +17,7 @@
"select2": "~4.0.0",
"dropzone": "~4.0.1",
"dotdotdot": "~1.7.3",
- "jquery.equalheights": "~1.5.2"
+ "jquery.equalheights": "~1.5.2",
+ "modernizr": "~2.8.3"
}
}
diff --git a/saleor/dashboard/templates/dashboard/base.html b/saleor/dashboard/templates/dashboard/base.html
index 565d023974..1eb751136a 100644
--- a/saleor/dashboard/templates/dashboard/base.html
+++ b/saleor/dashboard/templates/dashboard/base.html
@@ -1,7 +1,7 @@
{% load staticfiles %}
{% load i18n %}
<!DOCTYPE html>
-<html>
+<html class="no-js">
<head>
<meta charset="utf-8">
@@ -11,6 +11,8 @@
<link rel="stylesheet" type="text/css" href="{% static "css/dashboard.css" %}">
<link rel="stylesheet" type="text/css" href="{% static "versatileimagefield/css/versatileimagefield.css" %}">
+
+ <script src="{% static "js/dashboard-head.js" %}"></script>
{% block custom_css %}
{% endblock %}
</head>