Fix download file link works with the new TreeDropdown

This commit is contained in:
Christopher Joe 2017-02-24 09:30:49 +13:00 committed by Damian Mooyman
parent 98ecaf9bd0
commit 8b5fcd3336
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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;