Page MenuHomePhorge

D25077.1734695841.diff
No OneTemporary

D25077.1734695841.diff

diff --git a/webroot/rsrc/js/core/FileUpload.js b/webroot/rsrc/js/core/FileUpload.js
--- a/webroot/rsrc/js/core/FileUpload.js
+++ b/webroot/rsrc/js/core/FileUpload.js
@@ -115,7 +115,19 @@
switch (this.getStatus()) {
case 'done':
- var link = JX.$N('a', {href: this.getPageURI()}, this.getMonogram());
+
+ // In this case the File upload was successful
+
+ var linkAttr = {};
+ linkAttr.href = this.getPageURI();
+
+ // External links are evil as default.
+ // Believe it or not, but some Phorge users brainstormed
+ // for one hour for this specific target="_blank".
+ // https://we.phorge.it/T15172
+ linkAttr.target = '_blank';
+
+ var link = JX.$N('a', linkAttr, this.getMonogram());
content = [
JX.$N('strong', {}, ['Upload Complete (', link, ')']),

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 20, 11:57 (12 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1015338
Default Alt Text
D25077.1734695841.diff (889 B)

Event Timeline