do not show text field for binary files
[phorkie.git] / data / templates / edit-add.htm
index 19f10cf4697ddaa6601ae1fc07db87e27269af3a..e504deb358b8e7e2bcb69212776b000e8dda10f3 100644 (file)
@@ -5,7 +5,7 @@
     </a>
  </div>
 
- {% include 'edit-file.htm' with {'file': null, 'fileid': 'new'} %}
+ {% include 'edit-file.htm' with {'file': null, 'fileid': 'new', 'newfile': true} %}
 
 <script type="application/javascript">
 $(document).ready(function() {
@@ -13,7 +13,7 @@ $(document).ready(function() {
     $('#filegroupnew').hide();
     $('#add-button a').bind('click', function() {
         $('#add-button').before("{% filter escape('js') %}
-            {% include 'edit-file.htm' with {'file': null, 'fileid': '###'} %}
+            {% include 'edit-file.htm' with {'file': null, 'fileid': '###', 'newfile': true} %}
             {% endfilter %}"
             .replace(/###/g, $('.filegroup').length)
         );