Skip to content

Commit 9e69788

Browse files
authored
jquery: Add the js class, remove the no-js one
This used to be done by Modernizr until its removal in 08f27c1. Some sites apply different styling for JS-disabled environments; one such example is the jQuery UI Download Builder which expands all Themeroller knobs sections in the no-JS mode. Closes gh-457
1 parent b12072b commit 9e69788

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

themes/jquery/js/main.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Some CSS depends on the `js` class.
2+
$( "html" ).addClass( "js" ).removeClass( "no-js" );
3+
14
/*
25
* All sites
36
*/

0 commit comments

Comments
 (0)