o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1398162847.831084: @value"°{I" class:ETI"ProcessedAsset;FI"logical_path;TI"!locomotive/editable_field.js;FI" pathname;TI"”/Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-daa498a01652/vendor/assets/javascripts/locomotive/editable_field.js;FI"content_type;TI"application/javascript;TI" mtime;TI"2014-04-21T01:19:19+02:00;TI" length;Ti¨I" digest;TI"%1135976c9bcb73c1fb18ad8dc9b0f710;FI" source;TI"¨/** * Version 0.0.1 * tiny effect to display an input field when clicking on a label * Didier Lafforgue */ $.fn.editableField = function(settings) { var destroy = false; if ('destroy' == settings) { destroy = true } else { settings = $.extend({}, settings); } function getText(element) { if (element.is('select')) { return element[0].options[element[0].options.selectedIndex].text; } else { return element.val(); } } return this.each(function() { if (destroy) { $(this).unbind('mouseenter').unbind('mouseleave'); $(this).prev('.editable').unbind('click').remove(); } else { var input = $(this).hide(); var label = $('').addClass('editable').html(getText(input)); var timer = null; input.before(label); label.bind('click', function() { label.hide(); input.show().focus(); }); input.hover(function() { clearTimeout(timer); }, function() { timer = setTimeout(function() { input.hide(); label.show() }, 1000); }).change(function() { input.hide(); label.show().html(getText(input)) }); } }); } ; ;TI"dependency_digest;TI"%1241724c5fbb37927b81ef7a38e3856a;FI"required_paths;T[I"”/Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-daa498a01652/vendor/assets/javascripts/locomotive/editable_field.js;FI"dependency_paths;T[{I" path;TI"”/Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-daa498a01652/vendor/assets/javascripts/locomotive/editable_field.js;FI" mtime;TI"2014-04-21T01:19:19+02:00;TI" digest;TI"%c7ed0c8d53c0764333c2e0b992d72b36;FI" _version;TI"%ffd318ca8b794f42f5029101c2cf5d91;F