Sha256: 82d2543f59d0909b40238af6ecfeaafa669d1ba9325fc7e692779b5e7dcaeaab
Contents?: true
Size: 1.03 KB
Versions: 4
Compression:
Stored size: 1.03 KB
Contents
Rich.I18n = (function() { return { beforeEdit: function(inputs, selector, specs, identifier) { var translated_keys = $("<input name='content_item[derivative_keys]' type='hidden'/>") translated_keys.val($(identifier).map(function() { return $(this).attr("data-derivative_key"); }).toArray().join(";")); inputs.append(translated_keys); }, afterUpdate: function(form, response, selector, specs, identifier) { $.each(response.translations, function(key, value) { $( ".i18n" + identifier + "[data-derivative_key=" + key + "]") .attr("data-value", response.value).html( value); $("input.i18n" + identifier + "[data-derivative_key=" + key + "][value]") .attr("data-value", response.value).attr("value" , value); $("input.i18n" + identifier + "[data-derivative_key=" + key + "][seatholder]").attr("data-value", response.value).attr("seatholder", value); }); SeatHolder.rebind(); } }; }());
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rich_i18n-1.3.3 | assets/jzip/rich/i18n.js |
rich_i18n-1.3.2 | assets/jzip/rich/i18n.js |
rich_i18n-1.3.1 | assets/jzip/rich/i18n.js |
rich_i18n-1.3.0 | assets/jzip/rich/i18n.js |