@@ -1,4 +1,5 @@
jQuery(document).ready(function() {
+ $('html').removeClass('no-js');
Admin.add_pretty_errors(document);
Admin.add_collapsed_toggle();
Admin.add_filters(document);
@@ -230,3 +230,7 @@ body.sonata-bc {
margin-top: 5px;
}
+.no-js .sonata-collection-add, .no-js .sonata-collection-delete {
+ display: none;
+}
+
@@ -18,7 +18,7 @@ file that was distributed with this source code.
{% set _title = block('title') %}
{% set _breadcrumb = block('breadcrumb') %}
<!DOCTYPE html>
-<html>
+<html class="no-js">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />