RandomSec/main/webapp/modules/core/scripts
Tom Morris 5f368bc56d
Use ContentDisposition instead of ContentType to control download (#2722)
* Use ContentDisposition instead of ContentType to control download

Fixes #1197. Previously we were using a funky ContentType to attempt
to force a file download rather than display in browser, but this
conflicted with attempts to save UTF-8 which was outside the Basic
Multilingual Plane (BMP).

By switching to ContentDisposition: attachment, which has been
the preferred method for a number of years, we can avoid this conflict.

As part of this, switch to using the "preview" param consistently
to control preview vs download rather than the content type.

* Switch content type to text/plain

Now that we don't need to use ContentType to control download
behavior, we can use something more reasonable.
2020-06-16 15:46:07 +02:00
..
dialogs Use ContentDisposition instead of ContentType to control download (#2722) 2020-06-16 15:46:07 +02:00
facets Update jquery.i18n to 1.07 and fix non-English plural support (#2717) 2020-06-14 10:23:23 +02:00
index add archive column (#2573) 2020-06-15 19:56:00 +02:00
project Use ContentDisposition instead of ContentType to control download (#2722) 2020-06-16 15:46:07 +02:00
reconciliation Update URL of Wikidata reconciliation service. Closes #2724 2020-06-15 00:35:10 +02:00
util Set client timeout limit in chainGetJSON() (#2482) 2020-04-06 10:42:38 +02:00
views/data-table Refactoring the data table into a single container (#2719) 2020-06-16 11:40:13 +02:00
widgets Cleaned up code formatting in .js, .html, .vt, .css, .less files. 2011-08-04 20:37:14 +00:00
index.js Fix frontend for extensions for CSRF protections 2019-10-17 11:44:57 +01:00
preferences.js Fix frontend for extensions for CSRF protections 2019-10-17 11:44:57 +01:00
project.js (I #1038) Add a Show/Hide left panel button (#2616) 2020-05-30 12:01:26 +01:00