- removed url encoding;
This commit is contained in:
@@ -266,7 +266,7 @@ const DomandaEditPreInstructor = () => {
|
|||||||
case 'fileupload' :
|
case 'fileupload' :
|
||||||
content = <ul>
|
content = <ul>
|
||||||
{item.fieldValue.map(o => <li key={o.id}>
|
{item.fieldValue.map(o => <li key={o.id}>
|
||||||
{o.filePath ? <a href={encodeURI(o.filePath)}>{o.name}</a> : null}
|
{o.filePath ? <a href={o.filePath}>{o.name}</a> : null}
|
||||||
</li>)}
|
</li>)}
|
||||||
</ul>;
|
</ul>;
|
||||||
break;
|
break;
|
||||||
@@ -557,7 +557,7 @@ const DomandaEditPreInstructor = () => {
|
|||||||
{o.fileDetail && o.fileDetail.length === 1
|
{o.fileDetail && o.fileDetail.length === 1
|
||||||
? <Button icon="pi pi-eye" rounded
|
? <Button icon="pi pi-eye" rounded
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
window.open(encodeURI(o.fileDetail[0].filePath), '_blank').focus()
|
window.open(o.fileDetail[0].filePath, '_blank').focus()
|
||||||
}}
|
}}
|
||||||
outlined severity="info"
|
outlined severity="info"
|
||||||
aria-label={__('Mostra', 'gepafin')}/> : null}
|
aria-label={__('Mostra', 'gepafin')}/> : null}
|
||||||
@@ -598,7 +598,7 @@ const DomandaEditPreInstructor = () => {
|
|||||||
<ArchiveDocument ndg={data.ndg} fileId={k.id}/>
|
<ArchiveDocument ndg={data.ndg} fileId={k.id}/>
|
||||||
<Button icon="pi pi-eye" rounded
|
<Button icon="pi pi-eye" rounded
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
window.open(encodeURI(k.filePath), '_blank').focus()
|
window.open(k.filePath, '_blank').focus()
|
||||||
}}
|
}}
|
||||||
outlined severity="info"
|
outlined severity="info"
|
||||||
aria-label={__('Mostra', 'gepafin')}/>
|
aria-label={__('Mostra', 'gepafin')}/>
|
||||||
|
|||||||
Reference in New Issue
Block a user