Commit 992fd78f authored by bbaer's avatar bbaer
Browse files

changed upload for the new display style.

parent b30c3e79
...@@ -394,6 +394,7 @@ var QfqNS = QfqNS || {}; ...@@ -394,6 +394,7 @@ var QfqNS = QfqNS || {};
var $inputFile = $buttonParent.siblings(':file'); var $inputFile = $buttonParent.siblings(':file');
$inputFile.prop("disabled", false); $inputFile.prop("disabled", false);
$inputFile.removeClass('hidden'); $inputFile.removeClass('hidden');
$inputFile.parent().removeClass('hidden');
$inputFile.val(""); $inputFile.val("");
...@@ -417,8 +418,9 @@ var QfqNS = QfqNS || {}; ...@@ -417,8 +418,9 @@ var QfqNS = QfqNS || {};
var $fileInput = $(obj.target); var $fileInput = $(obj.target);
$fileInput.prop("disabled", true); $fileInput.prop("disabled", true);
$fileInput.addClass("hidden"); $fileInput.addClass("hidden");
$fileInput.parent().addClass("hidden");
var $deleteContainer = $fileInput.siblings('div.uploaded-file'); var $deleteContainer = $fileInput.parent().siblings('div.uploaded-file');
var fileNamesString = obj.target.files[0].name; var fileNamesString = obj.target.files[0].name;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment