o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1416672640.317675: @value"{I" class:ETI"ProcessedAsset;FI"logical_path;TI"locomotive/slugify.js;FI" pathname;TI"/Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/vendor/assets/javascripts/locomotive/slugify.js;FI"content_type;TI"application/javascript;TI" mtime;TI"2014-11-22T16:47:37+01:00;TI" length;TiI" digest;TI"%8c5472973060641a137c82dbbb69cb27;FI" source;TI"/** * Version 0.0.1 * Fill in an input field from another one (source) * and apply a filter on the string (slugify) * Didier Lafforgue */ $.fn.slugify = function(settings) { settings = $.extend({ sep: '-', url: null, underscore: false }, settings); var target = $(settings.target); target.data('touched', (target.val() != '')); var makeSlug = function(event) { var source = $(this); if (settings.url != null) { // Ajax call instead meaning rely on the server to get the slugified version of the field params = { 'string': source.val(), 'underscore': (settings.underscore ? '1' : '0') }; jQuery.getJSON(settings.url, params, function(data, textStatus, jqXHR) { var newVal = data['value'] if (!target.data('touched')) { target.val(newVal); target.trigger('change'); } }); } else { var newVal = source.val().slugify(settings.sep); if (!target.data('touched')) { target.val(newVal); target.trigger('change'); } } } target.bind('keyup', function(event) { $(this).data('touched', ($(this).val() != '')); }); return $(this).bind('keyup', makeSlug); }; ;TI"dependency_digest;TI"%7afbd8a24f83fd8f4f5463599cef12cd;FI"required_paths;T[I"/Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/vendor/assets/javascripts/locomotive/slugify.js;FI"dependency_paths;T[{I" path;TI"/Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/vendor/assets/javascripts/locomotive/slugify.js;FI" mtime;TI"2014-11-22T16:47:37+01:00;TI" digest;TI"%d3f91d477e03a8ca4945db629ab085ec;FI" _version;TI"%ffd318ca8b794f42f5029101c2cf5d91;F