app/assets/javascripts/spurs/beyond_bootstrap/responsive-tables.js in spurs-0.0.6.rc1 vs app/assets/javascripts/spurs/beyond_bootstrap/responsive-tables.js in spurs-0.0.6.rc2

- old
+ new

@@ -13,27 +13,27 @@ $("table.responsive").each(function(i, element) { unsplitTable($(element)); }); } }; - + $(window).load(updateTables); $(window).bind("resize", updateTables); - - + + function splitTable(original) { original.wrap("<div class='table-wrapper' />"); - + var copy = original.clone(); copy.find("td:not(.pin_for_mobile), th:not(.pin_for_mobile)").css("display", "none"); copy.removeClass("responsive"); - + original.closest(".table-wrapper").append(copy); copy.wrap("<div class='pinned' />"); original.wrap("<div class='scrollable' />"); } - + function unsplitTable(original) { original.closest(".table-wrapper").find(".pinned").remove(); original.unwrap(); original.unwrap(); }