From c7a6ca1d12dce9e8a51c921c4e60a1b424daa574 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Tue, 21 Aug 2018 18:06:44 +0000 Subject: [PATCH] touched up file_show.php a bit --- codepot/src/codepot/views/file_show.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/codepot/src/codepot/views/file_show.php b/codepot/src/codepot/views/file_show.php index 75a6afb1..55c6cfbb 100644 --- a/codepot/src/codepot/views/file_show.php +++ b/codepot/src/codepot/views/file_show.php @@ -562,10 +562,10 @@ $(function () { var file_drag_event_handler = function(e) { return false; }; var file_drop_event_handler = function(e) { - $('#file_show_add_file_form').dialog('close'); - var files = e.originalEvent.dataTransfer.files; - populate_selected_files_for_adding_with (files); - $('#file_show_add_file_form').dialog('open'); + var aff = $('#file_show_add_file_form'); + aff.dialog('close'); + populate_selected_files_for_adding_with(e.originalEvent.dataTransfer.files); + aff.dialog('open'); return false; };