demos/js/demo.js in compass-ui-0.0.4 vs demos/js/demo.js in compass-ui-0.0.5

- old
+ new

@@ -128,10 +128,13 @@ primary: 'ui-icon-wrench', secondary: 'ui-icon-triangle-1-s' } }); + // Color buttons + $("#dangerButton, #safeButton").button(); + // Button Set $("#radio1").buttonset(); $("#buttonInModal").button({ icons: {primary: 'ui-icon-wrench'} @@ -161,25 +164,33 @@ case 'demo-combinations': // Combinations $('#tabs2').tabs(); $("#accordion2").accordion({ header: "h4" }); // Nested button tests - $("#nestedButtonTest_1, #nestedButtonTest_2, #buttonInModal").button().click(function(e) { - e.preventDefault(); - }); + $("#nestedButtonTest_1, #nestedButtonTest_2, #buttonInModal") + .button().click(function(e) { + e.preventDefault(); + }); break; + // --------------------------- + // Combinations + // --------------------------- + case 'demo-form': + $('.format-ui-button').button(); + break; default: // code } } - // Switch styles + // Handle Style Switching $('#toggle-css a').click(function() { var name = $(this).html(); var summary = $(this).attr('data-summary'); summary = name + '<br><span class="summary">' + summary + '</span>'; - $('link[rel=stylesheet]').attr({href: $(this).attr('rel') + '?' + Date.now() }); + // $('link[rel=stylesheet]').attr({href: $(this).attr('rel') + '?' + Date.now() }); + $('link[id="theme"]').attr({href: $(this).attr('rel') + '?' + Number(new Date()) }); $('h2#showing span') .fadeOut('slow', function() { $(this) .html(summary) .fadeIn('slow');