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