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 --- res/domain-fragment.d/default/template.d/index.html | 1 + src/client/devtools.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/res/domain-fragment.d/default/template.d/index.html b/res/domain-fragment.d/default/template.d/index.html index 8dba87c6..a2079eb7 100644 --- a/res/domain-fragment.d/default/template.d/index.html +++ b/res/domain-fragment.d/default/template.d/index.html @@ -124,6 +124,7 @@ var RZ_VERSION = '{% include "version.txt" %}'; execute import +
Export 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