r2967 commited - - add demo for new option overrideDefaultState

r2967 commited - - add demo for new option overrideDefaultState


Revision: 2967
Author: malk0.phpgtk
Date: Thu Jul 23 17:41:49 2009
Log: - add demo for new option overrideDefaultState
http://code.google.com/p/jquery-ui/source/detail?r=2967
Modified:
/branches/labs/button/demo.html
=======================================
--- /branches/labs/button/demo.html    Thu Jul 23 16:21:12 2009
+++ /branches/labs/button/demo.html    Thu Jul 23 17:41:49 2009
@@ -72,6 +72,9 @@
                label.append($(this).button('isActive')?' on':' off');
        })
        
$('#toggleUnable').click(function(){$('#unable').button('option','disabled',$(this).button('isActive')?true:false);});
+        $('#defaultStateToggler').click(function(){
+            
$(this).prev('.ui-button').button('option','overrideDefaultState',$(this).button('isActive')?'':false);
+        });
    });
    </script>
</head>
@@ -136,7 +139,7 @@
    <a href="javascript:" class="ui-button ui-button-info toggle">toggle
button</a>
    <h3>Using SPAN element</h3>
    <span class="ui-button ui-button-wrench">standard button</span>
-    <span class="ui-button ui-button-flag toggle">toggle button</span>
+    <span class="ui-button ui-button-flag toggle"
id="defaultStateToggler">toggle previous button defaultState class</span>
    <h3>Using DIV element</h3>
    <div class="ui-button ui-button-plus">standard button</div>