From 825e9d82a8bfca619d090f152e837de19d986bde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn?= Date: Fri, 24 Oct 2014 13:15:09 +0200 Subject: [PATCH] Bug #3251: Better name selection --- src/sunstone/public/js/sunstone.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/sunstone/public/js/sunstone.js b/src/sunstone/public/js/sunstone.js index 0d0118d40f..1d139774ec 100644 --- a/src/sunstone/public/js/sunstone.js +++ b/src/sunstone/public/js/sunstone.js @@ -6516,6 +6516,8 @@ function selectResourceTableSelect(section, context_id, opts){ var options = $('#selected_ids_row_'+context_id, section).data("options"); if(options.multiple_choice){ + refreshResourceTableSelect(section, context_id); + var data_ids = $('#selected_ids_row_'+context_id, section).data("ids"); data_ids = {}; @@ -6613,9 +6615,9 @@ function selectResourceTableSelect(section, context_id, opts){ $('#selected_resource_name_'+context_id, section).text( row_name ).change(); $('#selected_resource_name_'+context_id, section).show(); - } - refreshResourceTableSelect(section, context_id); + refreshResourceTableSelect(section, context_id); + } } //==============================================================================