pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jahew...@apache.org
Subject svn commit: r1649660 - /pdfbox/cmssite/trunk/templates/skeleton.html
Date Mon, 05 Jan 2015 20:56:16 GMT
Author: jahewson
Date: Mon Jan  5 20:56:16 2015
New Revision: 1649660

URL: http://svn.apache.org/r1649660
Log:
Defer JS until page load

Modified:
    pdfbox/cmssite/trunk/templates/skeleton.html

Modified: pdfbox/cmssite/trunk/templates/skeleton.html
URL: http://svn.apache.org/viewvc/pdfbox/cmssite/trunk/templates/skeleton.html?rev=1649660&r1=1649659&r2=1649660&view=diff
==============================================================================
--- pdfbox/cmssite/trunk/templates/skeleton.html (original)
+++ pdfbox/cmssite/trunk/templates/skeleton.html Mon Jan  5 20:56:16 2015
@@ -48,8 +48,10 @@
     <script src="//code.jquery.com/jquery-latest.js"></script>
     <script src="/bootstrap/js/bootstrap.min.js"></script>
     <script type="text/javascript">
-        $('.sidebar-node').click(function() {
-            $(this).toggleClass('collapsed');
+        $(function() {
+            $('.sidebar-node').click(function() {
+                $(this).toggleClass('collapsed');
+            });
         });
     </script>
 </head>



Mime
View raw message