Merge pull request #972 from MITx/bug/cas/tom/fakepath

fixed fakepath on import
This commit is contained in:
chrisndodge
2012-10-25 09:52:26 -07:00

View File

@@ -137,7 +137,7 @@ function showImportSubmit(e) {
var filepath = $(this).val();
if(filepath.substr(filepath.length - 6, 6) == 'tar.gz') {
$('.error-block').hide();
$('.file-name').html($(this).val());
$('.file-name').html($(this).val().replace('C:\\fakepath\\', ''));
$('.file-name-block').show();
$('.import .choose-file-button').hide();
$('.submit-button').show();