From a06fad66481de2df262266aac78ff85e0b2e42e0 Mon Sep 17 00:00:00 2001 From: LV-426 Date: Fri, 22 May 2015 02:17:55 +0300 Subject: devtools: import: clear file-list on re-selection --- src/client/devtools.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/client/devtools.js') diff --git a/src/client/devtools.js b/src/client/devtools.js index 1274652e..9e0bd308 100644 --- a/src/client/devtools.js +++ b/src/client/devtools.js @@ -77,6 +77,7 @@ function($, rz_core, file_saver) { return; } + $('#debug-view__import__file-list').children().remove(); $.map(import_file_set, function(file){ var e_file_path; @@ -84,7 +85,7 @@ function($, rz_core, file_saver) { e_file_path = $('
'); e_file_path.addClass('debug-view__import__input_file_name') e_file_path.text('- ' + file.name); - $('#debug-view__import').append(e_file_path); + $('#debug-view__import__file-list').append(e_file_path); }); $('#devtools__import__step__export').show(); // enable import exec button -- cgit v1.3.1