o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1359747859.058474: @value"Æ{I" class:EFI"BundledAsset;FI"logical_path;FI"cytoplasm/cytoTable.js;FI" pathname;FI"f/Applications/XAMPP/xamppfiles/htdocs/cytoplasm/app/assets/javascripts/cytoplasm/cytoTable.js.erb;FI"content_type;FI"application/javascript;FI" mtime;FI"2013-02-01T14:44:16-05:00;FI" length;FiÙ I" digest;F"%32584d00801805c357eb18e75c2ab7a8I" source;FI"Ù // CytoTable v0.1 // By MacKinley Smith (function($){ var defaults = { widget:{ table:{ cell:{ padding:0, spacing:0, }, css:{ width:"100%", "margin-bottom":15, "box-shadow":"0px 0px 10px rgba(0,0,0,0.5)" }, element:false, tr:{ css:{}, elements:[], td:{ css:{ padding:10 }, elements:[], types:{ header:{ css:{}, tag:"h3" }, icon:{ css:{ width:16, cursor:'pointer' } }, info:{ css:{} }, label:{ css:{ width:100, font:"13px TitilliumTextLight", } } } } } } }, events:{ onCreate:function(cy){}, onChange:function(cy,event){}, onDestroy:function(cy){} } }; var methods = { init:function(options){ return this.each(function(){ var $this = $(this); if (!$this.is('table')) return console.warn("$.cytoTable expects a table!"); var settings = $.extend(true,{},defaults,options); // Setup table settings.widget.table.element = $(this).addClass('cytoTable') .attr({cellpadding:settings.widget.table.cell.padding,cellspacing:settings.widget.table.cell.spacing}) .css(settings.widget.table.css); // Setup tr var colspan = 0; settings.widget.table.tr.elements = settings.widget.table.element.find("tr").each(function(){ var tds = $(this).css(settings.widget.table.tr.css).find("td"); if (tds.length > colspan) colspan = tds.length; tds.each(function(){settings.widget.table.tr.td.elements.push($(this));}); }); // Setup td $.each(settings.widget.table.tr.td.elements,function(i,td){ td.css(settings.widget.table.tr.td.css); $.each(settings.widget.table.tr.td.types,function(type,opts){if (td.hasClass(type+'cell')) td.attr('data-type',type);}); if (td.data("type")!=null) { var type = td.data('type'); td.css(settings.widget.table.tr.td.types[type].css); switch (type) { case "header": td.attr('colspan',colspan); var tag = settings.widget.table.tr.td.types.header.tag; if (td.data('tag')!=null) tag = td.data('tag'); if (!td.children(tag).length) { tag = $('<'+tag+'>').html(td.html()) td.html("").append(tag); } else { tag = td.children(tag); tag.css("margin",0); } break; case "icon": break; case "info": td.attr('colspan',colspan); break; case "label": break; } } }); $this.data('cytoTable',settings); }); }, resize:function(){ return this.each(function(){ }); }, destroy:function(){ return this.each(function(){ }); } }; $.fn.cytoTable=function(method){ if (methods[method]) return methods[method].apply(this,Array.prototype.slice.call(arguments,1)); else if (typeof method == 'object' || !method) return methods.init.apply(this,arguments); else $.error('Method ' + method + ' does not exist on $.cytoTable!'); }; $(window).resize(function(){$('.cytoTable').cytoTable('resize');}); $.Cytoplasm("ready",function(){$('.cytoTable').cytoTable();}); })(jQuery); ;FI"required_assets_digest;F"%6a9cca55b02a7369c33214c39a578636I" _version;F"%6776f581a4329e299531e1d52aa59832