mirror of
https://github.com/Luzifer/share.git
synced 2024-12-21 02:51:17 +00:00
Fix: Image links broken
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
12f450cb0b
commit
0e3424080e
2 changed files with 35 additions and 35 deletions
68
bindata.go
68
bindata.go
|
@ -80,40 +80,40 @@ func (fi bindataFileInfo) Sys() interface{} {
|
||||||
}
|
}
|
||||||
|
|
||||||
var _bindataFrontendAppjs = []byte(
|
var _bindataFrontendAppjs = []byte(
|
||||||
"\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xb4\x56\x4b\x8f\xdb\x36\x10\xbe\xeb\x57\xcc\xc1\x00\xa9\xd4\x91\x1b\x24" +
|
"\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xb4\x56\xcd\x8e\xdb\x38\x0c\xbe\xfb\x29\x78\x08\x20\xb9\x9b\x3a\x5b\xb4" +
|
||||||
"\x27\xbb\x0e\x5a\x24\xce\xee\x02\xfb\x28\xbc\xde\xdb\xa2\x1b\x5a\x1a\x8b\xdc\xd0\xa4\x40\x52\xb1\x83\xac\xff\x7b" +
|
"\xa7\x64\x53\xec\xa2\x4d\x67\x06\x98\x9f\x45\x26\x73\x1b\xec\x54\xb1\x19\x4b\x53\x45\x32\x24\xb9\x49\xd1\xc9\xbb" +
|
||||||
"\x41\xea\x61\xc9\x76\x9c\x22\x40\x75\xa2\xc8\x99\x6f\xe6\x9b\x17\x29\xd1\xc1\x4a\x48\x7c\x98\x5f\xc3\x14\x54\x29" +
|
"\x2f\x24\xff\xc4\x4e\xd2\x74\x51\x60\x7d\x92\x25\xf2\x23\x3f\x92\x22\x25\xd1\xc1\x4a\x48\x7c\x98\x5f\xc3\x14\x54" +
|
||||||
"\xe5\x24\x4a\xb5\xb2\x0e\x6e\xee\x2f\x9e\x6e\xef\x16\x4f\x9f\xee\x1e\x6e\x3f\xc2\x14\xc8\x27\x21\x11\x94\x76\xb0" +
|
"\x29\xe5\x24\x4a\xb5\xb2\x0e\x6e\xee\x2f\x9e\x6e\xef\x16\x4f\x9f\xee\x1e\x6e\x3f\xc2\x14\xc8\x27\x21\x11\x94\x76" +
|
||||||
"\xd2\xa5\xca\xc8\xa1\xdc\xdf\xb3\xf9\xcd\xd5\x62\x31\x0b\xb2\xb7\xda\x01\x93\x52\x6f\x30\x03\xa7\x81\xa5\x29\x5a" +
|
"\xb0\xd2\xa5\xca\xc8\xa1\xdc\xdf\xb3\xf9\xcd\xd5\x62\x31\x0b\xb2\xb7\xda\x01\x93\x52\x6f\x30\x03\xa7\x81\xa5\x29" +
|
||||||
"\x1b\x0c\xf5\xf4\x2e\x66\xb7\xb3\xf9\xd5\x87\xa7\xd9\x7c\xee\xb5\xee\xf5\x1a\x1d\x17\x2a\x87\x0d\x2a\x07\x1b\xa3" +
|
"\x5a\x1b\x0c\xf5\xf4\x2e\x66\xb7\xb3\xf9\xd5\x87\xa7\xd9\x7c\xee\xb5\xee\xf5\x1a\x1d\x17\x2a\x87\x0d\x2a\x07\x1b" +
|
||||||
"\x55\x4e\x26\x51\x34\x7a\x05\xb9\xd4\x4b\x26\x61\x30\x5e\x31\x69\x11\x5e\x8d\xa2\x28\x95\xcc\x5a\xb8\xe7\xcc\x20" +
|
"\xa3\x55\x4e\x26\x51\x34\x7a\x05\xb9\xd4\x4b\x26\x61\x30\x5e\x31\x69\x11\x5e\x8d\xa2\x28\x95\xcc\x5a\xb8\xe7\xcc" +
|
||||||
"\x7c\x8f\x00\x84\x12\x8e\xc6\x61\x09\x30\xa0\x1b\xa1\x32\xbd\x89\x93\xa5\x50\x19\x25\x9c\x59\x9e\x72\xa6\x72\x24" +
|
"\x20\x7c\x8f\x00\x84\x12\x8e\xc6\x61\x09\x30\xa0\x1b\xa1\x32\xbd\x89\x93\xa5\x50\x19\x25\x9c\x59\x9e\x72\xa6\x72" +
|
||||||
"\x43\xa0\x18\xc3\xf4\x7d\x2d\x09\xe0\xb8\xb0\x89\x17\xb8\xd6\x2c\xa3\xf1\x24\x6c\xef\xe2\x49\x14\x16\x3e\x42\xac" +
|
"\x24\x43\xa0\x18\xc3\xf4\x7d\x2d\x09\xe0\xb8\xb0\x89\x17\xb8\xd6\x2c\xa3\xf1\x24\x6c\xef\xe2\x49\x14\x16\x3e\x42" +
|
||||||
"\x28\x16\xc2\x49\x84\x29\x7c\xae\x0c\xfe\x09\x83\xef\x95\x85\x44\xea\x94\x39\xa1\x55\xc2\xb5\x75\xbb\xcf\x93\xda" +
|
"\xac\x28\x16\xc2\x49\x84\x29\x7c\xae\x0c\xfe\x09\x83\xef\x95\x85\x44\xea\x94\x39\xa1\x55\xc2\xb5\x75\xbb\xcf\x93" +
|
||||||
"\x3e\x71\x5e\x63\x98\xb0\xa2\x08\x2b\x12\x27\x0e\xb7\x8e\x36\x58\x0d\xfe\x09\xeb\x3b\x7f\x82\xeb\x25\x66\x3e\xe6" +
|
"\xda\x3e\x71\x5e\x63\x98\xb0\xa2\x08\x2b\x12\x27\x0e\xb7\x8e\x36\x58\x0d\xfe\x09\xeb\x3b\x7f\x82\xeb\x25\x66\x3e" +
|
||||||
"\x57\x6a\xa5\xa9\x0f\x9d\x0f\x11\x69\x08\x8a\x15\xd4\x9b\xd3\xee\x76\x8b\xa7\x32\x89\x33\x63\xb4\xb9\x41\x6b\x59" +
|
"\xe6\x57\x6a\xa5\xa9\x0f\x9d\x0f\x11\x69\x08\x8a\x15\xd4\x9b\xd3\xee\x76\x8b\xa7\x32\x89\x33\x63\xb4\xb9\x41\x6b" +
|
||||||
"\x8e\xb4\x97\xcf\x86\x64\xe5\xc2\xbe\x00\xfc\xaa\x26\x90\xb0\x67\xb6\x0d\x26\x86\x2d\xb6\x4f\x8f\xce\xc6\x40\x2e" +
|
"\x59\x8e\xb4\x97\xcf\x86\x64\xe5\xc2\xbe\x00\xfc\xaa\x26\x90\xb0\x67\xb6\x0d\x26\x86\x2d\xb6\x4f\x8f\xce\xc6\x40" +
|
||||||
"\x67\x7f\x7d\x24\xc3\x7a\xd7\x96\x21\xbd\x63\xa0\x19\x73\x6c\x08\xd6\x31\x57\xda\x21\x6c\xb9\xe9\xc5\xb9\xef\x9b" +
|
"\x2e\x67\x7f\x7d\x24\xc3\x7a\xd7\x96\x21\xbd\x63\xa0\x19\x73\x6c\x08\xd6\x31\x57\xda\x21\x6c\xb9\xe9\xc5\xb9\xef" +
|
||||||
"\xa7\x77\x42\x61\x52\x0b\xef\x1a\x74\xf4\x24\xc6\x40\xb7\xdc\x34\x92\x67\x50\xbd\x70\x4f\xf4\x00\x6f\xb7\x0f\xf0" +
|
"\x9b\xa7\x77\x42\x61\x52\x0b\xef\x1a\x74\xf4\x24\xc6\x40\xb7\xdc\x34\x92\x67\x50\xbd\x70\x4f\xf4\x00\x6f\xb7\x0f" +
|
||||||
"\x79\x3f\x6a\x7c\x9f\x7d\xf7\xad\xf0\xb1\xdf\x72\x93\xe4\xe8\xe6\x68\x0b\xad\x2c\x5e\x22\xcb\xd0\x50\xf2\x41\x2b" +
|
"\xf0\x79\x3f\x6a\x7c\x9f\x7d\xf7\xad\xf0\xb1\xdf\x72\x93\xe4\xe8\xe6\x68\x0b\xad\x2c\x5e\x22\xcb\xd0\x50\xf2\x41" +
|
||||||
"\x87\xca\xbd\x5e\x7c\x2b\x90\x34\x49\x1d\x50\x92\xa4\x5a\x39\x26\x14\x1a\x12\x27\x5c\x64\xd8\x54\x96\x3f\xf3\x61" +
|
"\x2b\x87\xca\xbd\x5e\x7c\x2b\x90\x34\x49\x1d\x50\x92\xa4\x5a\x39\x26\x14\x1a\x12\x27\x5c\x64\xd8\x54\x96\x3f\xf3" +
|
||||||
"\x55\x6c\xdd\x16\x45\x9d\x81\xc4\x96\x4b\xeb\x8c\x50\x79\xbb\x23\x99\x75\x57\x2a\xc3\xed\xdd\x8a\x92\x11\x89\xe1" +
|
"\x61\x55\x6c\xdd\x16\x45\x9d\x81\xc4\x96\x4b\xeb\x8c\x50\x79\xbb\x23\x99\x75\x57\x2a\xc3\xed\xdd\x8a\x92\x11\x89" +
|
||||||
"\x37\x78\x13\x37\x66\x7c\x11\x78\xef\x92\x35\x73\x29\xa7\xa3\x7f\xc4\x9a\xe5\xf8\x38\x1a\xc5\xfb\x7a\x68\xcc\x49" +
|
"\xe1\x37\x78\x13\x1f\x20\x49\xa1\xbe\xbc\xe6\x06\x57\x24\x4e\x98\x73\x86\x92\xf0\x33\x6c\x12\xdb\x78\xe5\x6b\xc6" +
|
||||||
"\xa1\xbe\xbc\xb6\x26\x25\x71\xc2\x9c\x33\x94\xf8\xf5\xb0\xc9\x7d\x1b\x27\x2f\x6e\xb9\xde\xbc\x0e\x50\x24\x0e\x3f" +
|
"\x93\x49\xd6\xcc\xa5\x9c\x8e\xfe\x11\x6b\x96\xe3\xe3\x68\x14\xef\xcb\xa7\x87\x69\x4d\xda\x42\xfa\x75\x17\x71\x2f" +
|
||||||
"\xb4\x3d\x36\xe8\x4a\xa3\x7a\xd5\x73\xe4\xc4\x57\x91\xa1\xee\x3b\xe1\xc3\x68\x4d\x0a\x53\x8f\xff\x87\xd5\xa5\x49" +
|
"\x6e\xb9\xde\xbc\x0e\x50\x24\x0e\x3f\xb4\x3d\x36\xe8\x4a\xa3\x7a\xc5\x76\xe4\xc4\x57\x91\xa1\xee\x3b\xe1\xa3\x6e" +
|
||||||
"\xf1\x3d\x69\x51\xad\x49\xcf\x3a\x15\xce\x8b\x02\x55\xb6\xd0\x74\x40\x49\xb0\x40\xe2\x63\xa7\xeb\x83\x5f\x70\x9a" +
|
"\x4d\x0a\x53\x8f\xff\x87\xd5\xa5\x49\xf1\x3d\x69\x51\xad\x49\xcf\x3a\x15\xce\x8b\x02\x55\xb6\xd0\x74\x40\x49\xb0" +
|
||||||
"\x95\x99\xd0\x8f\x23\xca\x58\xfa\xb2\x2e\xde\xbe\xac\x0b\xcc\xe3\xc1\xff\xc8\x21\x18\x3c\xc5\xa1\x3e\xf8\x05\x0e" +
|
"\x40\xe2\x63\xa7\xeb\x83\x5f\x70\x9a\x95\x99\xd0\x8f\x23\xca\x58\xfa\xb2\x2e\xde\xbe\xac\x0b\xcc\xe3\xc1\xff\xc8" +
|
||||||
"\xd4\xd7\xd2\xe3\xe8\x85\x15\x85\x14\xd5\x50\x7a\x1c\x3d\xb3\xaf\xcc\xa6\x46\x14\x2e\xee\x95\xc5\xbe\xbf\x1f\xe6" +
|
"\x21\x18\x3c\xc5\xa1\x3e\xf8\x05\x0e\xd4\x97\xde\xe3\xe8\x85\x15\x85\x14\x55\x0f\x7b\x1c\x3d\xb3\xaf\xcc\xa6\x46" +
|
||||||
"\xd7\xc3\x4e\x3b\xf9\x5e\xf0\xc5\x3c\x06\xe2\xf1\xda\x36\xef\xb4\xff\xc5\x6c\xd1\xd9\xee\xf7\xff\x41\x73\x06\x62" +
|
"\x14\x2e\xee\x95\xc5\xbe\x1d\x3c\xcc\xaf\x87\x9d\xdb\xe7\xaf\x8e\xaf\xfd\x31\x10\x8f\xd7\x76\x85\x4e\xb7\xb8\x98" +
|
||||||
"\xa9\xce\xda\x52\x0f\x32\x93\xfe\x79\x45\x3c\x58\x3b\xe4\xed\x3f\x2e\x9f\x6d\xe2\xc7\xfb\xa5\xc8\xb9\x14\x39\x77" +
|
"\x2d\x3a\xdb\xfd\x76\x71\x70\x97\x03\xb1\x54\x67\xed\xcd\x08\x32\x93\xfe\x79\x45\x3c\x58\x3b\xe4\xed\x3f\x2e\x9f" +
|
||||||
"\xbe\x43\x3a\x22\xbb\xbd\x33\x3f\x1f\x17\xff\x71\x60\x74\x50\x77\xe7\xb2\xd0\xeb\x2f\x6e\x70\xd5\x36\x58\xf8\x39" +
|
"\x6d\xe2\xa7\xc1\xa5\xc8\xb9\x14\x39\x77\xfe\x42\x75\x44\x76\x7b\x67\x7e\xde\x5d\xfe\x63\x7f\xe9\xa0\xee\xce\x65" +
|
||||||
"\x2c\x84\x96\x6d\x8e\x0a\x8d\x48\x7b\x84\xbb\x73\xe9\xc8\xb1\xce\x44\x5a\x57\x33\x3d\x5c\x08\x15\xac\xdd\x08\x97" +
|
"\xa1\x75\x3f\x47\x85\x46\xa4\x3d\x06\xdd\xbe\x74\x64\xa9\xd3\x91\xd6\x55\x4f\x0f\x03\xa1\x42\xb7\x1b\xe1\x52\x1e" +
|
||||||
"\xf2\x40\x3b\xe9\xcb\x03\xa4\xcc\x22\xbc\xfb\xfd\xdd\xb8\x93\xc8\x46\xbf\x77\x2b\xec\xa9\x2f\x0d\xb2\x2f\x93\xbe" +
|
"\x78\x24\x7d\x79\x80\x94\x59\x84\x77\xbf\xbf\x1b\x77\x32\xd3\xe8\xf7\xa6\xc2\x9e\xcb\xd2\x20\xfb\x32\xe9\xeb\xbf" +
|
||||||
"\xfe\xdb\x73\xfa\xed\xed\xff\x03\x8c\x0c\x57\xac\x94\xee\x47\x10\x9d\x87\xc0\x49\x80\x5d\xef\xae\x3c\xba\xdb\x6a" +
|
"\x3d\xa7\xdf\x4e\xff\x1f\x60\x64\xb8\x62\xa5\x74\x3f\x82\xe8\x3c\x04\x4e\x02\xec\x7a\xb3\xf2\x68\xb6\xd5\x60\x27" +
|
||||||
"\xb0\x93\x31\x3c\x94\x69\x1f\x08\x24\x09\xb5\xd2\xd4\x65\x17\xe3\xe7\x03\x3c\xa4\xb0\xd1\x3f\x4a\x60\x73\x99\x77" +
|
"\x63\x78\x28\xd3\x3e\x10\x48\x12\x92\xdf\x14\x5a\x17\xe3\xe7\x0d\x3c\xa4\xb0\xd1\x3f\x4a\x60\x33\xcc\x3b\x29\xab" +
|
||||||
"\x52\x56\x5f\xe0\x47\x6f\x06\x66\x79\x67\xea\xbf\xa9\x4d\x04\xa2\xc7\x2f\x80\xda\xc6\x2e\x8a\x06\x74\x55\xaa\xd4" +
|
"\x07\xf8\xd1\x9b\x81\x59\xde\xe9\xfa\x6f\x6a\x13\x81\xe8\xf1\x0b\xa0\xb6\xb1\x8b\xa2\x01\x5d\x95\x2a\xf5\x10\xb5" +
|
||||||
"\x43\xd4\x56\xc2\x74\x0a\x4f\x93\x29\x28\xdc\x54\xef\xa2\xca\xa9\xb0\x9d\x54\xcf\xa3\x49\xe4\x8b\xf9\xdf\x00\x00" +
|
"\x95\xd0\x6e\xc2\xd3\x64\x0a\x0a\x37\xd5\xbb\xa8\x72\x2a\x6c\x27\xd5\xf3\x68\x12\xf9\xea\xfc\x37\x00\x00\xff\xff" +
|
||||||
"\x00\xff\xff\xcc\xb0\x6a\xfb\xf6\x09\x00\x00")
|
"\x9a\x1f\x14\xac\xf6\x09\x00\x00")
|
||||||
|
|
||||||
func bindataFrontendAppjsBytes() ([]byte, error) {
|
func bindataFrontendAppjsBytes() ([]byte, error) {
|
||||||
return bindataRead(
|
return bindataRead(
|
||||||
|
|
|
@ -39,6 +39,7 @@ class Share {
|
||||||
|
|
||||||
$('.container').hide();
|
$('.container').hide();
|
||||||
$('.filename').text(fileURL.substring(fileURL.lastIndexOf('/') + 1));
|
$('.filename').text(fileURL.substring(fileURL.lastIndexOf('/') + 1));
|
||||||
|
$('.filelink-href').attr('href', fileURL);
|
||||||
|
|
||||||
if (type.match(/^image\//)) {
|
if (type.match(/^image\//)) {
|
||||||
$('.filelink-src').attr('src', fileURL);
|
$('.filelink-src').attr('src', fileURL);
|
||||||
|
@ -78,7 +79,6 @@ class Share {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$('.filelink-href').attr('href', fileURL);
|
|
||||||
$('.show-generic').show();
|
$('.show-generic').show();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue