hide type dropdown when a filename with a dot is given
[phorkie.git] / data / templates / index.htm
index 05989dfa062894318286b13700c48c6a3abfad97..31913bcf3285bacda85395addf5777638aa2c850 100644 (file)
@@ -8,7 +8,9 @@
    <input type="text" name="description" id="description" value="{{description}}"/>
  </div>
 
- {% include 'edit-file.htm' with {'file': file[1], 'fileid': 1} %}
+ {% include 'edit-file.htm' with {'file': file[1], 'fileid': 0, 'newfile': true} %}
+
+ {% include 'edit-add.htm' %}
 
  <div class="well" style="text-align: right">
   <button class="btn btn-primary" type="submit">
@@ -18,4 +20,9 @@
  </div>
 
 </form>
+<script type="application/javascript">
+$(document).ready(function() {
+    initFilenames();
+});
+</script>
 {% endblock %}