o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1364339938.6874611: @value"Ð {I" class:EFI"ProcessedAsset;FI"logical_path;FI"refinery/serializelist.js;TI" pathname;FI"Œ/Users/johanfrolich/.rvm/gems/ruby-1.9.3-p327@refinerycms-menus/gems/refinerycms-core-2.0.9/app/assets/javascripts/refinery/serializelist.js;TI"content_type;FI"application/javascript;FI" mtime;FI"2013-02-04T15:34:04+01:00;FI" length;Fi÷I" digest;F"%a4141c1176473a90ae2817a577149d1cI" source;FI"÷/** * jQuery Serialize List * Copyright (c) 2009 Mike Botsko, Botsko.net LLC * Licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) * Copyright notice and license must remain intact for legal use * Version .2 * * Serialize an unordered or ordered list item. Optional ability * to determine which attributes are included. The serialization * will be read by PHP as a multidimensional array which you may * use for saving state. * * http://github.com/botskonet/jquery.serialize-list */ (function($) { $.fn.serializelist = function(options) { var defaults = { attributes: ['id'], allow_nest: true, prepend: 'ul', att_regex: false, is_child: false }, opts = $.extend(defaults, options), attrs = opts.attributes, serialStr = '', val, x, att, child_base; var att_rep = function(att, val) { if(!opts.att_regex) { return val; } for(x in opts.att_regex) { if(opts.att_regex[x].att === att) { return val.replace(opts.att_regex[x].regex, ''); } } }; if(!opts.is_child) { opts.prepend = '&' + opts.prepend; } this.each(function(ul_count, ul) { $(ul).children().each(function(li_count, li) { if(opts.allow_nest || attrs.length > 1) { for(att in attrs) { val = att_rep(attrs[att], $(li).attr(attrs[att])); serialStr += opts.prepend+'['+ul_count+']['+li_count+']['+attrs[att]+']='+val; } } else { val = att_rep(attrs[0], $(li).attr(attrs[0])); serialStr += opts.prepend+'['+ul_count+']['+li_count+']='+val; } if(opts.allow_nest) { child_base = opts.prepend+'['+ul_count+']['+li_count+'][children]'; $(li).children().each(function() { if(this.tagName == 'UL' || this.tagName == 'OL') { serialStr += $(this).serializelist({'prepend': child_base, 'is_child': true}); } }); } li_count++; }); }); return(serialStr); }; })(jQuery); ;FI"dependency_digest;F"%50aa10613e32814890c9802755eb2cebI"required_paths;F[I"Œ/Users/johanfrolich/.rvm/gems/ruby-1.9.3-p327@refinerycms-menus/gems/refinerycms-core-2.0.9/app/assets/javascripts/refinery/serializelist.js;TI"dependency_paths;F[{I" path;FI"Œ/Users/johanfrolich/.rvm/gems/ruby-1.9.3-p327@refinerycms-menus/gems/refinerycms-core-2.0.9/app/assets/javascripts/refinery/serializelist.js;TI" mtime;FI"2013-02-04T15:34:04+01:00;FI" digest;F"%ad20a38a3f07a63473df474acd5d06e6I" _version;F"%ffd318ca8b794f42f5029101c2cf5d91