IDEMPIERE-5223 Allow attachment preview for xml and json (#1231)
This commit is contained in:
parent
d3e74faa32
commit
299454d5df
|
@ -357,6 +357,7 @@ public class MimeType
|
|||
// { ".jpg", "image/pjpeg"},
|
||||
{ ".jps", "image/x-jps"},
|
||||
{ ".js", "application/x-javascript"},
|
||||
{ ".json", "application/json"},
|
||||
{ ".jut", "image/jutvision"},
|
||||
|
||||
{ ".kar", "audio/midi"},
|
||||
|
|
|
@ -146,6 +146,8 @@ public class WAttachment extends Window implements EventListener<Event>
|
|||
autoPreviewList.add("image/gif");
|
||||
autoPreviewList.add("text/plain");
|
||||
autoPreviewList.add("application/pdf");
|
||||
autoPreviewList.add("text/xml");
|
||||
autoPreviewList.add("application/json");
|
||||
// autoPreviewList.add("text/html"); IDEMPIERE-3980
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue