Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed updating textareas with seatholders

  • Loading branch information...
commit 06fd4993e52d9ce5f277fd60f7aefac3db5f4dbd 1 parent 603772f
Paul Engel authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 assets/jzip/rich/i18n.js
8 assets/jzip/rich/i18n.js
View
@@ -2,7 +2,7 @@
Rich.I18n = (function() {
return {
beforeEdit: function(inputs, selector, specs, identifier) {
- var translated_keys = $("<input name='content_item[derivative_keys]' type='hidden'/>")
+ var translated_keys = $("<input name='content_item[derivative_keys]' type='hidden'/>");
translated_keys.val($(identifier).map(function() {
return $(this).attr("data-derivative_key");
@@ -12,9 +12,9 @@ Rich.I18n = (function() {
},
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);
+ $(".i18n" + identifier + "[data-derivative_key=" + key + "]") .attr("data-value", response.value).html( value);
+ $(".i18n" + identifier + "[data-derivative_key=" + key + "][value]") .attr("data-value", response.value).attr("value" , value);
+ $(".i18n" + identifier + "[data-derivative_key=" + key + "][seatholder]").attr("data-value", response.value).attr("seatholder", value);
});
SeatHolder.rebind();
}
Please sign in to comment.
Something went wrong with that request. Please try again.