Commit 219421187eafcecda3e6162a89828a5aa5ea913b
1 parent
577b8129
Exists in
master
and in
23 other branches
Avoid javascript code making bad HTML parsers go insane
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
app/views/layouts/application.rhtml
| @@ -41,6 +41,7 @@ | @@ -41,6 +41,7 @@ | ||
| 41 | %>' onload='noosfero_init();' | 41 | %>' onload='noosfero_init();' |
| 42 | onresize="registerDocumentSize()"> | 42 | onresize="registerDocumentSize()"> |
| 43 | <script type="text/javascript"> | 43 | <script type="text/javascript"> |
| 44 | + // <!-- | ||
| 44 | function registerDocumentSize() { | 45 | function registerDocumentSize() { |
| 45 | document.body.className = document.body.className.replace(/docSize-(G|L)T-\d+/g, ""); | 46 | document.body.className = document.body.className.replace(/docSize-(G|L)T-\d+/g, ""); |
| 46 | for ( var x=100; x<=1500; x+=100 ) { | 47 | for ( var x=100; x<=1500; x+=100 ) { |
| @@ -52,6 +53,7 @@ | @@ -52,6 +53,7 @@ | ||
| 52 | } | 53 | } |
| 53 | } | 54 | } |
| 54 | registerDocumentSize(); | 55 | registerDocumentSize(); |
| 56 | + // --> | ||
| 55 | </script> | 57 | </script> |
| 56 | 58 | ||
| 57 | <div id="accessibility_menu"> | 59 | <div id="accessibility_menu"> |