Some minor deployment bugs

parent 64e53b5b
FROM ubuntu:14.04.1
MAINTAINER ismael.rodriguez
RUN apt-get update && apt-get install -y python-scipy
RUN apt-get update && apt-get install -y python-scipy python-networkx
RUN apt-get update && apt-get install -y apache2 libapache2-mod-wsgi
RUN apt-get update && apt-get install -y git
......
......@@ -3,7 +3,6 @@
<head>
<meta charset="UTF-8">
<script src="js/loader.js"></script>
<script src="js/assistant.js"></script>
<script src="js/viz.js"></script>
</head>
......
......@@ -10,7 +10,7 @@
<div id="file_info" class="panel-collapse collapse" role="tabpanel">
<div class="panel-body">
<p>The data file must be in csv ("comma separated values") format. That is, a plain text file in which each row represents an element of the data set, with its attributes separated by commas. Lets take the following image as an example:</p>
<img src="imagenes/fichero.png" class="img-responsive" alt="Formato fichero" width="130px;" height="290px;">
<img src="img/fichero.png" class="img-responsive" alt="Formato fichero" width="130px;" height="290px;">
<br>
<p>It consists of the following elements:</p>
<ul>
......
......@@ -62,6 +62,25 @@ $(document).ready(function(){
$("#export_text").val(exportTableToCSV($('table')));
}
});
// Event handler that perfoms feedback about the file selected
$(document).on('change', '.btn-file :file', function() {
var input = $(this),
numFiles = input.get(0).files ? input.get(0).files.length : 1,
label = input.val().replace(/\\/g, '/').replace(/.*\//, '');
input.trigger('fileselect', [numFiles, label]);
});
$(document).ready( function() {
$('.btn-file :file').on('fileselect', function(event, numFiles, label) {
var input = $(this).parents('.input-group').find(':text'),
log = numFiles > 1 ? numFiles + ' files selected' : label;
if( input.length ) {
input.val(log);
}
});
});
});
});
......
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