o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1360055764.389299: @value"¤ {I" class:EFI"BundledAsset;FI"logical_path;FI"i18n_viz/gui.js;FI" pathname;FI"I/home/jk/gems/i18n_viz/app/assets/javascripts/i18n_viz/gui.js.coffee;FI"content_type;FI"application/javascript;FI" mtime;FI"2013-02-05T10:09:21+01:00;FI" length;FiÛI" digest;F"%f61cc9625e14876bf7f5cf51412b4507I" source;FI"Û(function() { $(document).ready(function() { $("body").append('
...
').click(function() { return $("#i18n_viz_tooltip").hide(); }); $.fn.initGUI = function() { var $i18n_element, keys; $i18n_element = $(this); keys = $i18n_element.data("i18n-keys"); $i18n_element.mouseenter(function() { var $tooltip, left, top; $tooltip = $("#i18n_viz_tooltip"); top = $i18n_element.offset().top - $tooltip.outerHeight(); left = $i18n_element.offset().left; if (top < 0) { top = $i18n_element.offset().top + $i18n_element.height() + 10; } $tooltip.html(''); keys.forEach(function(value) { if (window.I18nViz.external_tool_url.length > 0) { return $tooltip.append('' + value + ''); } else { return $tooltip.append("" + value + ""); } }); return $tooltip.css({ top: top, left: left }).show(); }); return $i18n_element; }; $(":i18n-textnode").each(function() { return $(this).enrichWithI18nData().clearI18nText().initGUI(); }); return $("input:i18n-value-placeholder").each(function() { var $i18n_input_element, cleared_input_value, cleared_placeholder_value, input_value, placeholder_value; $i18n_input_element = $(this); input_value = $i18n_input_element.val(); placeholder_value = $i18n_input_element.attr('placeholder'); $i18n_input_element.enrichWithI18nData(); cleared_input_value = input_value.replace(window.I18nViz.global_regex, ""); $(this).val(cleared_input_value); if (placeholder_value) { cleared_placeholder_value = placeholder_value.replace(window.I18nViz.global_regex, ""); return $(this).attr('placeholder', cleared_placeholder_value); } }); }); }).call(this); ;FI"required_assets_digest;F"%8a3563dddeb3f0f5ff4db6c6f5106678I" _version;F"%ffd318ca8b794f42f5029101c2cf5d91