Commit 9daeebe9 authored by Jens Vagelpohl's avatar Jens Vagelpohl

- Collector #1454/OFS.File: Accept content types ending with

  "javascript" as editable through the File edit form, just like
  text/<foo> types
parent ec9e4b1f
...@@ -35,6 +35,10 @@ Zope Changes ...@@ -35,6 +35,10 @@ Zope Changes
- RAMCacheManager: Allow invalidation of a cache entry from the - RAMCacheManager: Allow invalidation of a cache entry from the
Statistics view in the ZMI Statistics view in the ZMI
- Collector #1454/OFS.File: Accept content types ending with
"javascript" as editable through the File edit form, just like
text/<foo> types
Bugs fixed Bugs fixed
- Collector #1127: strftime did not take timezone into account. - Collector #1127: strftime did not take timezone into account.
......
...@@ -48,8 +48,10 @@ text type and small enough to be edited in a text area. ...@@ -48,8 +48,10 @@ text type and small enough to be edited in a text area.
</td> </td>
</tr> </tr>
<dtml-if "this().getContentType()[:4] == 'text' and this().get_size() < 65536"> <dtml-let ct=getContentType>
<tr> <dtml-if "(ct.startswith('text') or ct.endswith('javascript'))
and this().get_size() < 65536">
<tr>
<td align="left" valign="top" colspan="2"> <td align="left" valign="top" colspan="2">
<div style="width: 100%;"> <div style="width: 100%;">
<dtml-let cols="REQUEST.get('dtpref_cols', '100%')" <dtml-let cols="REQUEST.get('dtpref_cols', '100%')"
...@@ -63,9 +65,9 @@ text type and small enough to be edited in a text area. ...@@ -63,9 +65,9 @@ text type and small enough to be edited in a text area.
</dtml-let> </dtml-let>
</div> </div>
</td> </td>
</tr> </tr>
<dtml-else> <dtml-else>
<tr> <tr>
<td align="left" valign="top"> <td align="left" valign="top">
<div class="form-label"> <div class="form-label">
Last Modified Last Modified
...@@ -76,8 +78,8 @@ text type and small enough to be edited in a text area. ...@@ -76,8 +78,8 @@ text type and small enough to be edited in a text area.
<dtml-var bobobase_modification_time fmt="%Y-%m-%d %H:%M"> <dtml-var bobobase_modification_time fmt="%Y-%m-%d %H:%M">
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td align="left" valign="top"> <td align="left" valign="top">
<div class="form-label"> <div class="form-label">
File Size File Size
...@@ -88,8 +90,9 @@ text type and small enough to be edited in a text area. ...@@ -88,8 +90,9 @@ text type and small enough to be edited in a text area.
<dtml-var size thousands_commas> bytes <dtml-var size thousands_commas> bytes
</div> </div>
</td> </td>
</tr> </tr>
</dtml-if> </dtml-if>
</dtml-let>
<tr> <tr>
<td></td> <td></td>
......
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