o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1336549141.4986172 éX:@value"U{I"
class:EFI"ProcessedAsset; FI"logical_path; FI"i18n_viz/gui.js; FI"
pathname; FI"J/home/jk/rails/i18n_viz/app/assets/javascripts/i18n_viz/gui.js.coffee; FI"content_type; FI"application/javascript; FI"
mtime; FI"2012-03-09T00:57:46+01:00; FI"length; Fi^I"digest; F"%1f85b29fb556f09fc8169b1abb00c3adI"source; FI"^(function() {
$(document).ready(function() {
$("body").append('
...
').click(function() {
return $("#i18n_viz_tooltip").hide();
});
$.fn.initGUI = function(keys) {
$(this).mouseenter(function() {
var $tooltip, left, top;
$tooltip = $("#i18n_viz_tooltip");
top = $(this).offset().top - $tooltip.outerHeight();
left = $(this).offset().left;
if (top < 0) {
top = $(this).offset().top + $(this).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 $(this);
};
$(":i18n-textnode").each(function() {
var $i18n_textnode, i18n_keys;
$i18n_textnode = $(this);
i18n_keys = window.I18nViz.extractI18nKeysFromText($i18n_textnode.text());
return $i18n_textnode.enrichWithI18nData(i18n_keys).initGUI(i18n_keys).clearI18nText();
});
return $("input:i18n-value-placeholder").each(function() {
var $i18n_input_element, cleared_input_value, cleared_placeholder_value, i18n_keys, input_value, placeholder_value;
$i18n_input_element = $(this);
input_value = $i18n_input_element.val();
placeholder_value = $i18n_input_element.attr('placeholder');
i18n_keys = extractI18nKeysFromText(input_value + placeholder_value);
$i18n_input_element.enrichWithI18nData(i18n_keys);
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);
; TI"dependency_digest; F"%01de653a8c35288570dc248f9e7aa15fI"required_paths; F[I"J/home/jk/rails/i18n_viz/app/assets/javascripts/i18n_viz/gui.js.coffee; FI"dependency_paths; F[{I" path; FI"J/home/jk/rails/i18n_viz/app/assets/javascripts/i18n_viz/gui.js.coffee; FI"
mtime; FI"2012-03-09T00:57:46+01:00; FI"digest; F"%2a92c3b39e428a8f8e7750aaaeae8c26I"
_version; F"%45a9b34d2c65935f21d8f90f1e1b2836