Commit a0f4e672 by Tom Giannattasio

fixed fakepath on import

parent b9d96df1
...@@ -137,7 +137,7 @@ function showImportSubmit(e) { ...@@ -137,7 +137,7 @@ function showImportSubmit(e) {
var filepath = $(this).val(); var filepath = $(this).val();
if(filepath.substr(filepath.length - 6, 6) == 'tar.gz') { if(filepath.substr(filepath.length - 6, 6) == 'tar.gz') {
$('.error-block').hide(); $('.error-block').hide();
$('.file-name').html($(this).val()); $('.file-name').html($(this).val().replace('C:\\fakepath\\', ''));
$('.file-name-block').show(); $('.file-name-block').show();
$('.import .choose-file-button').hide(); $('.import .choose-file-button').hide();
$('.submit-button').show(); $('.submit-button').show();
......
Markdown is supported
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