|
95 | 95 | $titleField.val(title) |
96 | 96 |
|
97 | 97 | // Support for Winter.Translate |
98 | | - var defaultLocale = $('[data-control="multilingual"]').data('default-locale') |
| 98 | + var defaultLocale = $('[data-default-locale]', self.$popupContainer).data('default-locale') |
99 | 99 | if (defaultLocale) { |
100 | 100 | $('[name="RLTranslate['+defaultLocale+'][title]"]', self.$popupContainer).val(title) |
101 | 101 | } |
|
190 | 190 | } |
191 | 191 | } |
192 | 192 |
|
193 | | - var defaultLocale = $('[data-control="multilingual"]').data('default-locale') |
| 193 | + var defaultLocale = $('[data-default-locale]', $popupContainer).data('default-locale') |
194 | 194 | $.each(properties, function(property, val) { |
195 | 195 | if (property == 'viewBag') { |
196 | 196 | $.each(val, function(vbProperty, vbVal) { |
|
258 | 258 | var $input = $('[name="'+property+'"]', $popupContainer).not('[type=hidden]') |
259 | 259 | setPropertyOnElement($input, val) |
260 | 260 | // If the Winter.Translate default locale data locker fields are available make sure that they are properly populated |
261 | | - var $defaultLocaleField = $('[name="RLTranslate['+defaultLocale+']['+property+']"]', self.$popupContainer) |
| 261 | + var $defaultLocaleField = $('[name="RLTranslate['+defaultLocale+']['+property+']"]', $popupContainer) |
262 | 262 | if ($defaultLocaleField) { |
263 | 263 | $defaultLocaleField.val($input.val()); |
264 | 264 | } |
|
416 | 416 | $(this).val($localeField.val()) |
417 | 417 | }); |
418 | 418 |
|
419 | | - var defaultLocale = $('[data-control="multilingual"]').data('default-locale') |
| 419 | + var defaultLocale = $('[data-default-locale]', self.$popupContainer).data('default-locale') |
420 | 420 |
|
421 | 421 | $.each(propertyNames, function() { |
422 | 422 | var propertyName = this, |
|
0 commit comments