]> source.dussan.org Git - jquery.git/commitdiff
Messed around with API document: Improved layout, removed animation, added <Content...
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Tue, 2 Jan 2007 19:05:00 +0000 (19:05 +0000)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Tue, 2 Jan 2007 19:05:00 +0000 (19:05 +0000)
build/docs/js/doc.js
build/docs/js/pager.js
build/docs/style/docs.xsl
build/docs/style/style.css

index 8a144f0d0272dcc64d58f49d62b9cd11865656de..4c607fe502c45cd00bcf39d4635afffb3c88ac6f 100644 (file)
@@ -8,7 +8,8 @@ var types = {
        "Array&lt;Element&gt;": "An Array of DOM Elements.",
        "Array&lt;String&gt;": "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).",
+       "&lt;Content&gt;": "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;
        });
        
index 12755aa081cb561dc09254542b536c920e3dc66c..8370befd27cbcdf8dc1839e8de348635baa59af5 100644 (file)
@@ -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;
index ff1977acced7dbb2db592e0973b5f421bac9d536..9c0735a8fc7e82a71672ae954100122b5b984bf9 100644 (file)
@@ -31,7 +31,7 @@
                                                                </xsl:if>
                                                        </xsl:for-each>
                                                 )</xsl:if>
-                               </span>
+                               </span> returns <span class='tooltip'><xsl:value-of select="@type"/></span>
                                <div class='short'>
                                        <xsl:value-of select="@short"/>
                                </div>
index d64a601d1b09843edc50f4793a4aeda64c7aeeed..3e84aab020cc962781ad3e8994a6606713941d0f 100644 (file)
@@ -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 {