Commit 044f13c1 authored by Tristan Cavelier's avatar Tristan Cavelier

[web_renderjs_ui]: jslint gadget_erp5_page_form.js

parent 8b93517d
...@@ -486,11 +486,13 @@ and handling data send&receive. ...@@ -486,11 +486,13 @@ and handling data send&receive.
* is unfortunately constructing <a> and clicking on it * is unfortunately constructing <a> and clicking on it
*/ */
.declareJob("forceDownload", function forceDownload(attachment) { .declareJob("forceDownload", function forceDownload(attachment) {
/*jslint regexp: true */
var attachment_data = attachment.target.response, var attachment_data = attachment.target.response,
filename = /(?:^|;)\s*filename\s*=\s*"?([^";]+)/i.exec( filename = /(?:^|;)\s*filename\s*=\s*"?([^";]+)/i.exec(
attachment.target.getResponseHeader("Content-Disposition") || "" attachment.target.getResponseHeader("Content-Disposition") || ""
), ),
a_tag = document.createElement("a"); a_tag = document.createElement("a");
/*jslint regexp: false */
if (attachment.target.responseType !== "blob") { if (attachment.target.responseType !== "blob") {
attachment_data = new Blob( attachment_data = new Blob(
......
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