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)