r2989 commited - spinner: updated autohide demo to use options.buttons

r2989 commited - spinner: updated autohide demo to use options.buttons


Revision: 2989
Author: pazu2k@gmail.com
Date: Sun Jul 26 17:02:57 2009
Log: spinner: updated autohide demo to use options.buttons
http://code.google.com/p/jquery-ui/source/detail?r=2989
Modified:
/branches/dev/spinner/demos/spinner/autohide.html
=======================================
--- /branches/dev/spinner/demos/spinner/autohide.html    Thu May 21 20:09:55
2009
+++ /branches/dev/spinner/demos/spinner/autohide.html    Sun Jul 26 17:02:57
2009
@@ -16,17 +16,17 @@
            return isNaN(i) ? speed : i;
        }
-        $("#s1, #s2").spinner({hide: 'fast'});
+        $("#s1, #s2").spinner({buttons: 'auto'});
        $("#autohide").toggle(function() {
-            $("#s1, #s2").spinner("option", "hide", false);
+            $("#s1, #s2").spinner("option", "buttons", 'show');
            $("#speedp").css("display", "none");
        }, function() {
-            $("#s1, #s2").spinner("option", "hide", getSpeed());
+            $("#s1, #s2").spinner("option", "buttons", getSpeed());
            $("#speedp").css("display", "block");
        });
        $("#speed").change(function() {
-            $("#s1, #s2").spinner("option", "hide", getSpeed());
+            $("#s1, #s2").spinner("option", "buttons", getSpeed());
        });
    });
    </script>