From bb816b9c95b3ad8c6335588b4f232599d5838bd6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=B6rn=20Zaefferer?= Date: Tue, 2 Jan 2007 19:05:00 +0000 Subject: [PATCH] Messed around with API document: Improved layout, removed animation, added type --- build/docs/js/doc.js | 5 +++-- build/docs/js/pager.js | 2 +- build/docs/style/docs.xsl | 2 +- build/docs/style/style.css | 10 ++++------ 4 files changed, 9 insertions(+), 10 deletions(-) diff --git a/build/docs/js/doc.js b/build/docs/js/doc.js index 8a144f0d0..4c607fe50 100644 --- a/build/docs/js/doc.js +++ b/build/docs/js/doc.js @@ -8,7 +8,8 @@ var types = { "Array<Element>": "An Array of DOM Elements.", "Array<String>": "An Array of strings.", Function: "A reference to a Javascript function.", - XMLHttpRequest: "An XMLHttpRequest object (referencing a HTTP request)." + XMLHttpRequest: "An XMLHttpRequest object (referencing a HTTP request).", + "<Content>": "A String (to generate HTML on-the-fly), a DOM Element, an Array of DOM Elements or a jQuery object" }; $(document).ready(function(){ @@ -18,7 +19,7 @@ $(document).ready(function(){ }).ToolTipDemo('#fff'); $("a.name").click(function(){ - $("div.more,div.short",this.parentNode.parentNode).toggle('slow'); + $("div.more,div.short",this.parentNode.parentNode).toggle(); return false; }); diff --git a/build/docs/js/pager.js b/build/docs/js/pager.js index 12755aa08..8370befd2 100644 --- a/build/docs/js/pager.js +++ b/build/docs/js/pager.js @@ -102,7 +102,7 @@ $.fn.pager = function(step) { .addClass("cur"); pagedUI.empty().append( - jQuery.merge( rows, [] ).slice( s, s + e ) + jQuery.makeArray( rows ).slice( s, s + e ) ); return false; diff --git a/build/docs/style/docs.xsl b/build/docs/style/docs.xsl index ff1977acc..9c0735a8f 100644 --- a/build/docs/style/docs.xsl +++ b/build/docs/style/docs.xsl @@ -31,7 +31,7 @@ ) - + returns
diff --git a/build/docs/style/style.css b/build/docs/style/style.css index d64a601d1..3e84aab02 100644 --- a/build/docs/style/style.css +++ b/build/docs/style/style.css @@ -55,7 +55,7 @@ ul.nav-page li.next a, ul.nav-page li.prev a { ul#docs { list-style: none; margin: 0 auto; - padding: 5px; + padding: 8px; width: 600px; background: #FFF; text-align: left; @@ -76,7 +76,7 @@ ul#docs li a.name { } ul#docs li span.type { - display: block; + display: none; float: left; color: #666; width: 100px; @@ -94,9 +94,8 @@ ul#docs li span.arg-type { ul#docs li div.short { font-size: 12px; color: #666; - margin-left: 110px; + margin-left: 10px; margin-top: 5px; - width: 490px; } ul#docs span.fn { @@ -110,9 +109,8 @@ ul#docs div.tooltipdemo { ul#docs li div.more { display: none; - margin-left: 110px; + margin-left: 10px; margin-top: 5px; - width: 490px; } ul#docs li div.example { -- 2.39.5