{I" class:ETI"ProcessedAsset;FI"logical_path;TI"admin/more-or-less.js;FI" pathname;TI"ƒ/Users/brittanymartin/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/trusty-cms-2.0.26/app/assets/javascripts/admin/more-or-less.js;FI"content_type;TI"application/javascript;TI" mtime;Tl+áµXI" length;TiÈI" digest;TI"%f939e0bc80ad090fa13a3edbb2747279;FI" source;TI"È(function(MoreOrLess, $) { MoreOrLess.setupToggle = function (link){ if (link.innerHTML.match(/less/i)) { MoreOrLess.toggle(link); } $(link).on('click', function(event){ event.preventDefault(); MoreOrLess.toggle(this); }); } MoreOrLess.toggle = function(link) { var elements = MoreOrLess.extractToggleObjects($(link).attr('rel')); $(elements).slideToggle(); $(link).toggleClass('less more'); if (link.innerHTML.match(/less/i)) { link.innerHTML = 'More'; } else if (link.innerHTML.match(/more/i)) { link.innerHTML = 'Less'; } } MoreOrLess.extractToggleObjects = function(rel) { var matches = rel.match(/^toggle\[(.+)\]$/); if (matches) { var ids = matches[1].split(','); return $("#" + ids.join(", #")); } } }(window.MoreOrLess = window.MoreOrLess || {}, jQuery)); $(function () { $('a.toggle').each(function(){ MoreOrLess.setupToggle(this); }); }); ;TI"dependency_digest;TI"%272fbe3fb70fc66fbeb8525a28dabdc4;FI"required_paths;T[I"ƒ/Users/brittanymartin/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/trusty-cms-2.0.26/app/assets/javascripts/admin/more-or-less.js;FI"dependency_paths;T[{I" path;TI"ƒ/Users/brittanymartin/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/trusty-cms-2.0.26/app/assets/javascripts/admin/more-or-less.js;F@I"2017-02-28T15:43:45-05:00;T@I"%f939e0bc80ad090fa13a3edbb2747279;FI" _version;TI"%5dbb392182285b4042e11c847d2199ba;F