fix: url in preview
parent
8c70f8ad91
commit
4db307d6fe
|
@ -179,7 +179,7 @@
|
||||||
<div style="margin: 12px 4px 4px; text-align: center">
|
<div style="margin: 12px 4px 4px; text-align: center">
|
||||||
<div style="margin: 24px">
|
<div style="margin: 24px">
|
||||||
<textarea id="url" title="url" rows="1" style="width: 100%; margin-top: 2px;" readonly><!--FileEncodeUrl--></textarea>
|
<textarea id="url" title="url" rows="1" style="width: 100%; margin-top: 2px;" readonly><!--FileEncodeUrl--></textarea>
|
||||||
<a href="<!--FileUrl-->"><ion-icon name="download" style="line-height: 16px;vertical-align: middle;"></ion-icon> <!--constStr@Download--></a>
|
<a href="<!--FileEncodeUrl-->"><ion-icon name="download" style="line-height: 16px;vertical-align: middle;"></ion-icon> <!--constStr@Download--></a>
|
||||||
</div>
|
</div>
|
||||||
<div style="margin: 24px">
|
<div style="margin: 24px">
|
||||||
<!--IsimgFileStart-->
|
<!--IsimgFileStart-->
|
||||||
|
@ -509,7 +509,10 @@
|
||||||
<!--IsFileStart-->
|
<!--IsFileStart-->
|
||||||
var $url = document.getElementById('url');
|
var $url = document.getElementById('url');
|
||||||
if ($url) {
|
if ($url) {
|
||||||
$url.innerHTML = location.protocol + '//' + location.host + $url.innerHTML;
|
//$url.innerHTML = location.protocol + '//' + location.host + $url.innerHTML;
|
||||||
|
let url = location.href;
|
||||||
|
url = url.substr(0, url.length-8);
|
||||||
|
$url.innerHTML = url.replace(/&/g, '&amp;');
|
||||||
$url.style.height = $url.scrollHeight + 'px';
|
$url.style.height = $url.scrollHeight + 'px';
|
||||||
}
|
}
|
||||||
<!--IsofficeFileStart-->
|
<!--IsofficeFileStart-->
|
||||||
|
|
Loading…
Reference in New Issue