From a1aac7173675c5ed145f696d61d3e69403f3853e Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Wed, 22 Aug 2018 10:18:52 +0000 Subject: [PATCH] improved file_show.php a bit --- codepot/src/codepot/views/file_show.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/codepot/src/codepot/views/file_show.php b/codepot/src/codepot/views/file_show.php index da6e0dc2..1cd75a8e 100644 --- a/codepot/src/codepot/views/file_show.php +++ b/codepot/src/codepot/views/file_show.php @@ -90,11 +90,10 @@ function populate_selected_files_for_adding_with (files) } } - $('#file_show_add_file_table').empty(); + var file_table = $('#file_show_add_file_table'); + file_table.empty(); populated_file_obj_for_adding = []; - //var f = $('#file_show_add_files').get(0); - //var f = files_obj; var f_no = 0; for (var n = 0; n < files.length; n++) { @@ -103,7 +102,7 @@ function populate_selected_files_for_adding_with (files) var desc = file_desc[files[n].name]; if (desc == null) desc = ''; - $('#file_show_add_file_table').append ( + file_table.append ( codepot_sprintf ( '%s', f_no, f_no, f_no, codepot_htmlspecialchars(files[n].name), f_no, codepot_addslashes(desc)