Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
import local file... Choose File should allow picking multiple files …
…like drop

Remove final newline introduced by me.
Fix Bug420576
--Signed-off-by: Adrian Aichner <adrian.aichner@gmail.com>
  • Loading branch information
anaran committed Nov 4, 2013
1 parent 16cc563 commit d2d352b
Showing 1 changed file with 5 additions and 3 deletions.
Expand Up @@ -34,7 +34,7 @@ define(['i18n!orion/widgets/nls/messages', 'orion/webui/littlelib', 'orion/webui
'</div>' + //$NON-NLS-0$
'</div>' + //$NON-NLS-0$
'</div>' + //$NON-NLS-0$
'<div class="layoutBlock layoutRight"><input type="file" name="selectedFile" id="selectedFile" class="uploadChooser" /><span id="uploadButton" role="button" class="commandButton disabled" tabindex="0">${Upload}</span></div>' + //$NON-NLS-0$
'<div class="layoutBlock layoutRight"><input type="file" multiple name="selectedFile" id="selectedFile" class="uploadChooser" /><span id="uploadButton" role="button" class="commandButton disabled" tabindex="0">${Upload}</span></div>' + //$NON-NLS-0$
'</div>'; //$NON-NLS-0$

ImportDialog.prototype._init = function(options) {
Expand Down Expand Up @@ -106,8 +106,10 @@ define(['i18n!orion/widgets/nls/messages', 'orion/webui/littlelib', 'orion/webui
return;
}
if (this.$selectedFile.files && this.$selectedFile.files.length > 0) {
this.uploadFile(this.$selectedFile.files[0]);
}
for (var i = 0; i < this.$selectedFile.files.length; i++) {
this.uploadFile(this.$selectedFile.files[i]);
}
}

};

Expand Down

0 comments on commit d2d352b

Please sign in to comment.