Sha256: 11c48d31a3c409f3fc084300100a94b791ee86f664f088b069978457a54302ab

Contents?: true

Size: 1.9 KB

Versions: 2

Compression:

Stored size: 1.9 KB

Contents

{I"
class:ETI"ProcessedAsset;FI"logical_path;TI"responsive-tables.js;FI"
pathname;TI"k/usr/local/rvm/gems/ruby-2.1.2/gems/spree_backend-2.2.4/vendor/assets/javascripts/responsive-tables.js;FI"content_type;TI"application/javascript;TI"
mtime;Tl+TI"length;TiCI"digest;TI"%874d74a7c2690cb4214e9125f33df0c7;FI"source;TI"C$(document).ready(function() {
  var switched = false;
  var updateTables = function() {
    if (($(window).width() < 767) && !switched ){
      switched = true;
      $("table.responsive").each(function(i, element) {
        splitTable($(element));
      });
      return true;
    }
    else if (switched && ($(window).width() > 767)) {
      switched = false;
      $("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(:first-child), th:not(:first-child)").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();
	}

});
;TI"dependency_digest;TI"%0e88ce3ecf02bf8e1beb6a9232ae9678;FI"required_paths;T[I"k/usr/local/rvm/gems/ruby-2.1.2/gems/spree_backend-2.2.4/vendor/assets/javascripts/responsive-tables.js;FI"dependency_paths;T[{I"	path;TI"k/usr/local/rvm/gems/ruby-2.1.2/gems/spree_backend-2.2.4/vendor/assets/javascripts/responsive-tables.js;FI"
mtime;TI"2014-09-04T18:28:45-04:00;TI"digest;TI"%874d74a7c2690cb4214e9125f33df0c7;FI"
_version;TI"%5ef14a844324cba3e114bd0123f88a5e;F

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bcms_spree-0.0.2 test/dummy/tmp/cache/assets/development/sprockets/4b94b70a396bcb968cd6a680d4b03e46
bcms_spree-0.0.1 test/dummy/tmp/cache/assets/development/sprockets/4b94b70a396bcb968cd6a680d4b03e46