From 9f3395ada146f0599eb598cb5e6f818696cdecf5 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Wed, 22 Apr 2015 13:22:09 -0400 Subject: [PATCH] Fix docker file build form to read the files from its local uploader, rather than just the first one it finds --- static/js/directives/ui/dockerfile-build-form.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/directives/ui/dockerfile-build-form.js b/static/js/directives/ui/dockerfile-build-form.js index b62fba979..76e284f8c 100644 --- a/static/js/directives/ui/dockerfile-build-form.js +++ b/static/js/directives/ui/dockerfile-build-form.js @@ -158,7 +158,7 @@ angular.module('quay').directive('dockerfileBuildForm', function () { $scope.uploading = true; $scope.uploading_progress = 0; - var uploader = $('#file-drop')[0]; + var uploader = $element.find('#file-drop')[0]; if (uploader.files.length == 0) { handleMissingFile(); $scope.uploading = false;