mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Fix download file link works with the new TreeDropdown
This commit is contained in:
parent
98ecaf9bd0
commit
8b5fcd3336
2
admin/client/dist/js/bundle.js
vendored
2
admin/client/dist/js/bundle.js
vendored
@ -1844,7 +1844,7 @@ i&&(e+="#"+i)
|
|||||||
break
|
break
|
||||||
case"anchor":e="#"+i
|
case"anchor":e="#"+i
|
||||||
break
|
break
|
||||||
case"file":var r=this.find(".ss-uploadfield .ss-uploadfield-item").attr("data-fileid")
|
case"file":var r=this.find(":input[name=file]").val()
|
||||||
e=r?"[file_link,id="+r+"]":""
|
e=r?"[file_link,id="+r+"]":""
|
||||||
break
|
break
|
||||||
case"email":e="mailto:"+this.find(":input[name=email]").val(),n&&(e+="?subject="+encodeURIComponent(n)),t=null
|
case"email":e="mailto:"+this.find(":input[name=email]").val(),n&&(e+="?subject="+encodeURIComponent(n)),t=null
|
||||||
|
@ -598,7 +598,7 @@ $.entwine('ss', function($) {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'file':
|
case 'file':
|
||||||
var fileid = this.find('.ss-uploadfield .ss-uploadfield-item').attr('data-fileid');
|
var fileid = this.find(':input[name=file]').val();
|
||||||
href = fileid ? '[file_link,id=' + fileid + ']' : '';
|
href = fileid ? '[file_link,id=' + fileid + ']' : '';
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user