var parent = $(this).closest('.freefile-file');
var tf = $(parent).find('.freefile-text-input');
+ tf.attr('data-upload-id', id);
let tfname = $(tf).attr('name');
let uid = $this.getCurrentFormUID();
$this.loadingFields[uid + '_' + tfname] = true;
var xhr = f.data('jqxhr');
xhr.done(function (data) {
if ($this.getCurrentFormUID() === uid) {
- let tf = $("#linkeditor-panel-form").find('.freefile-text-input[name="' + tfname + '"]');
+ let tf = $("#linkeditor-panel-form").find('[data-upload-id="' + id + '"]');
tf.val(data[0]);
tf.trigger('change');
$(tf).closest('.freefile-file').removeClass('loading');
initSelect2: function () {
// trigger select2 for each untriggered select2 box
$('#linkeditor-panel-form .select2_from_array:not(.init)').each(function (i, obj) {
- if($(this).closest('.item.sample').length>0){
+ if ($(this).closest('.item.sample').length > 0) {
return;
}