浏览代码

docs: use DOM ready event, not document loaded event

Marian Beermann 8 年之前
父节点
当前提交
a9059a64bd

+ 1 - 1
docs/usage/benchmark_crud.rst.inc

@@ -27,7 +27,7 @@ borg benchmark crud
     .. raw:: html
 
         <script type='text/javascript'>
-        $(window).load(function () {
+        $(document).ready(function () {
             $('.borg-options-table colgroup').remove();
         })
         </script>

+ 1 - 1
docs/usage/break-lock.rst.inc

@@ -25,7 +25,7 @@ borg break-lock
     .. raw:: html
 
         <script type='text/javascript'>
-        $(window).load(function () {
+        $(document).ready(function () {
             $('.borg-options-table colgroup').remove();
         })
         </script>

+ 1 - 1
docs/usage/change-passphrase.rst.inc

@@ -25,7 +25,7 @@ borg change-passphrase
     .. raw:: html
 
         <script type='text/javascript'>
-        $(window).load(function () {
+        $(document).ready(function () {
             $('.borg-options-table colgroup').remove();
         })
         </script>

+ 1 - 1
docs/usage/check.rst.inc

@@ -49,7 +49,7 @@ borg check
     .. raw:: html
 
         <script type='text/javascript'>
-        $(window).load(function () {
+        $(document).ready(function () {
             $('.borg-options-table colgroup').remove();
         })
         </script>

+ 1 - 1
docs/usage/create.rst.inc

@@ -83,7 +83,7 @@ borg create
     .. raw:: html
 
         <script type='text/javascript'>
-        $(window).load(function () {
+        $(document).ready(function () {
             $('.borg-options-table colgroup').remove();
         })
         </script>

+ 1 - 1
docs/usage/delete.rst.inc

@@ -47,7 +47,7 @@ borg delete
     .. raw:: html
 
         <script type='text/javascript'>
-        $(window).load(function () {
+        $(document).ready(function () {
             $('.borg-options-table colgroup').remove();
         })
         </script>

+ 1 - 1
docs/usage/diff.rst.inc

@@ -53,7 +53,7 @@ borg diff
     .. raw:: html
 
         <script type='text/javascript'>
-        $(window).load(function () {
+        $(document).ready(function () {
             $('.borg-options-table colgroup').remove();
         })
         </script>

+ 1 - 1
docs/usage/export-tar.rst.inc

@@ -45,7 +45,7 @@ borg export-tar
     .. raw:: html
 
         <script type='text/javascript'>
-        $(window).load(function () {
+        $(document).ready(function () {
             $('.borg-options-table colgroup').remove();
         })
         </script>

+ 1 - 1
docs/usage/extract.rst.inc

@@ -49,7 +49,7 @@ borg extract
     .. raw:: html
 
         <script type='text/javascript'>
-        $(window).load(function () {
+        $(document).ready(function () {
             $('.borg-options-table colgroup').remove();
         })
         </script>

+ 1 - 1
docs/usage/info.rst.inc

@@ -41,7 +41,7 @@ borg info
     .. raw:: html
 
         <script type='text/javascript'>
-        $(window).load(function () {
+        $(document).ready(function () {
             $('.borg-options-table colgroup').remove();
         })
         </script>

+ 1 - 1
docs/usage/init.rst.inc

@@ -33,7 +33,7 @@ borg init
     .. raw:: html
 
         <script type='text/javascript'>
-        $(window).load(function () {
+        $(document).ready(function () {
             $('.borg-options-table colgroup').remove();
         })
         </script>

+ 1 - 1
docs/usage/key_change-passphrase.rst.inc

@@ -25,7 +25,7 @@ borg key change-passphrase
     .. raw:: html
 
         <script type='text/javascript'>
-        $(window).load(function () {
+        $(document).ready(function () {
             $('.borg-options-table colgroup').remove();
         })
         </script>

+ 1 - 1
docs/usage/key_export.rst.inc

@@ -33,7 +33,7 @@ borg key export
     .. raw:: html
 
         <script type='text/javascript'>
-        $(window).load(function () {
+        $(document).ready(function () {
             $('.borg-options-table colgroup').remove();
         })
         </script>

+ 1 - 1
docs/usage/key_import.rst.inc

@@ -31,7 +31,7 @@ borg key import
     .. raw:: html
 
         <script type='text/javascript'>
-        $(window).load(function () {
+        $(document).ready(function () {
             $('.borg-options-table colgroup').remove();
         })
         </script>

+ 1 - 1
docs/usage/key_migrate-to-repokey.rst.inc

@@ -25,7 +25,7 @@ borg key migrate-to-repokey
     .. raw:: html
 
         <script type='text/javascript'>
-        $(window).load(function () {
+        $(document).ready(function () {
             $('.borg-options-table colgroup').remove();
         })
         </script>

+ 1 - 1
docs/usage/list.rst.inc

@@ -65,7 +65,7 @@ borg list
     .. raw:: html
 
         <script type='text/javascript'>
-        $(window).load(function () {
+        $(document).ready(function () {
             $('.borg-options-table colgroup').remove();
         })
         </script>

+ 1 - 1
docs/usage/mount.rst.inc

@@ -45,7 +45,7 @@ borg mount
     .. raw:: html
 
         <script type='text/javascript'>
-        $(window).load(function () {
+        $(document).ready(function () {
             $('.borg-options-table colgroup').remove();
         })
         </script>

+ 1 - 1
docs/usage/prune.rst.inc

@@ -59,7 +59,7 @@ borg prune
     .. raw:: html
 
         <script type='text/javascript'>
-        $(window).load(function () {
+        $(document).ready(function () {
             $('.borg-options-table colgroup').remove();
         })
         </script>

+ 1 - 1
docs/usage/recreate.rst.inc

@@ -69,7 +69,7 @@ borg recreate
     .. raw:: html
 
         <script type='text/javascript'>
-        $(window).load(function () {
+        $(document).ready(function () {
             $('.borg-options-table colgroup').remove();
         })
         </script>

+ 1 - 1
docs/usage/rename.rst.inc

@@ -27,7 +27,7 @@ borg rename
     .. raw:: html
 
         <script type='text/javascript'>
-        $(window).load(function () {
+        $(document).ready(function () {
             $('.borg-options-table colgroup').remove();
         })
         </script>

+ 1 - 1
docs/usage/serve.rst.inc

@@ -31,7 +31,7 @@ borg serve
     .. raw:: html
 
         <script type='text/javascript'>
-        $(window).load(function () {
+        $(document).ready(function () {
             $('.borg-options-table colgroup').remove();
         })
         </script>

+ 1 - 1
docs/usage/umount.rst.inc

@@ -25,7 +25,7 @@ borg umount
     .. raw:: html
 
         <script type='text/javascript'>
-        $(window).load(function () {
+        $(document).ready(function () {
             $('.borg-options-table colgroup').remove();
         })
         </script>

+ 1 - 1
docs/usage/upgrade.rst.inc

@@ -38,7 +38,7 @@ borg upgrade
     .. raw:: html
 
         <script type='text/javascript'>
-        $(window).load(function () {
+        $(document).ready(function () {
             $('.borg-options-table colgroup').remove();
         })
         </script>

+ 1 - 1
docs/usage/with-lock.rst.inc

@@ -29,7 +29,7 @@ borg with-lock
     .. raw:: html
 
         <script type='text/javascript'>
-        $(window).load(function () {
+        $(document).ready(function () {
             $('.borg-options-table colgroup').remove();
         })
         </script>

+ 1 - 1
setup.py

@@ -387,7 +387,7 @@ class build_usage(Command):
         .. raw:: html
 
             <script type='text/javascript'>
-            $(window).load(function () {
+            $(document).ready(function () {
                 $('.borg-options-table colgroup').remove();
             })
             </script>