Changeset View
Changeset View
Standalone View
Standalone View
webroot/rsrc/js/core/FileUpload.js
Show First 20 Lines • Show All 109 Lines • ▼ Show 20 Lines | update : function() { | ||||
.show(); | .show(); | ||||
var content; | var content; | ||||
// TODO: This stuff needs some work for translations. | // TODO: This stuff needs some work for translations. | ||||
switch (this.getStatus()) { | switch (this.getStatus()) { | ||||
case 'done': | 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 = [ | content = [ | ||||
JX.$N('strong', {}, ['Upload Complete (', link, ')']), | JX.$N('strong', {}, ['Upload Complete (', link, ')']), | ||||
JX.$N('br'), | JX.$N('br'), | ||||
this.getName() | this.getName() | ||||
]; | ]; | ||||
this._notification | this._notification | ||||
▲ Show 20 Lines • Show All 85 Lines • Show Last 20 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0