o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1355470614.783881: @value"-{I" class:EFI"ProcessedAsset;FI"logical_path;FI"-mercury/dependencies/jquery.additions.js;FI" pathname;FI"/Users/brownjohn/.rvm/gems/ruby-1.9.3-p194/gems/mercury-rails-0.8.0/app/assets/javascripts/mercury/dependencies/jquery.additions.js;FI"content_type;FI"application/javascript;FI" mtime;FI"2012-08-08T16:13:36+08:00;FI" length;Fi)I" digest;F"%50d3e8244d0fd7fcffc3a0f01e69dcf7I" source;FI")/* * jQuery serializeObject Plugin: https://github.com/fojas/jQuery-serializeObject * */ !function($){ $.serializeObject = function(obj){ var o={},lookup=o,a = obj; $.each(a,function(){ var named = this.name.replace(/\[([^\]]+)?\]/g,',$1').split(','), cap = named.length - 1, i = 0; for(;i. The name of * the University may not be used to endorse or promote products derived from this software without specific prior * written permission. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ (function($) { $.fn.localize = function(locale) { this.find('*').contents().each(function() { var translated = false; var source = ''; if (typeof(this.data) == 'string') { source = $.trim(this.data); if (source && (translated = (locale.sub[source] || locale.top[source]))) { this.data = translated; } } if (this.nodeName == 'IMG' && this.attributes['src']) { source = this.attributes['src'].nodeValue; if (source && (translated = (locale.sub[source] || locale.top[source]))) { $(this).attr('src', translated); } } if (this.nodeName == "A" && this.attributes['href']) { source = $.trim(this.attributes['href'].nodeValue); if (source && (translated = (locale.sub[source] || locale.top[source]))) { $(this).attr('href', translated); } } if (this.nodeName == "INPUT" && this.attributes['type']) { if (this.attributes['value'] && ['submit', 'reset', 'button'].indexOf(this.attributes['type'].nodeValue.toLowerCase()) > -1) { source = $.trim(this.attributes['value'].nodeValue); if (source && (translated = (locale.sub[source] || locale.top[source]))) { $(this).attr('value', translated); } } } return this; }); }; })(jQuery); ;TI"dependency_digest;F"%48921c7afc82e877e61da874ca5736bcI"required_paths;F[I"/Users/brownjohn/.rvm/gems/ruby-1.9.3-p194/gems/mercury-rails-0.8.0/app/assets/javascripts/mercury/dependencies/jquery.additions.js;FI"dependency_paths;F[{I" path;FI"/Users/brownjohn/.rvm/gems/ruby-1.9.3-p194/gems/mercury-rails-0.8.0/app/assets/javascripts/mercury/dependencies/jquery.additions.js;FI" mtime;FI"2012-08-08T16:13:36+08:00;FI" digest;F"%aa09c9188fca6c0ddf56cc5722913012I" _version;F"%9f3b95dd7ea3030dc35985c0a8020862