From 2bbf43fae4bf65ac87c1e46ecc1d5c778334a84d Mon Sep 17 00:00:00 2001 From: titima15 Date: Mon, 21 Oct 2024 11:32:03 -0400 Subject: [PATCH] modified dialog --- mason/transformation/add_autogenerated_name_metadata_dialog.mas | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/mason/transformation/add_autogenerated_name_metadata_dialog.mas b/mason/transformation/add_autogenerated_name_metadata_dialog.mas index 008389182e..d7130a1b07 100644 --- a/mason/transformation/add_autogenerated_name_metadata_dialog.mas +++ b/mason/transformation/add_autogenerated_name_metadata_dialog.mas @@ -140,7 +140,7 @@ jQuery(document).ready(function(){ }; jQuery(document).on('change', "select[name='selected_attribute']", function() { - var div_id = '#' + this.id; + let div_id = '#' + this.id; let attribute = jQuery(div_id).val(); if (attribute == 'text') { attribute_string(div_id, div_id + '_string'); @@ -148,10 +148,8 @@ jQuery(document).ready(function(){ }); function attribute_string(div_id, select_id){ - var attribute_text = jQuery(div_id).val(); - var html = ''; - html = html + ''; - html = html + '
'; + let attribute_text = jQuery(div_id).val(); + let html = ''; jQuery(select_id).html(html); }; -- 2.11.4.GIT