diff --git a/modules/Components/src/client/ACASFormFields.coffee b/modules/Components/src/client/ACASFormFields.coffee index 920e8c746..081fd3817 100644 --- a/modules/Components/src/client/ACASFormFields.coffee +++ b/modules/Components/src/client/ACASFormFields.coffee @@ -872,9 +872,9 @@ class ACASFormLSFileValueFieldController extends ACASFormAbstractFieldController if !displayText? displayText = fileValue if @displayInline - @$('.bv_file').html ''+ displayText+'' + @$('.bv_file').html ''+ displayText+'' else - @$('.bv_file').html ''+displayText+'' + @$('.bv_file').html ''+displayText+'' @$('.bv_deleteSavedFile').show() createNewFileChooser: -> diff --git a/modules/ServerAPI/src/client/AttachFile.coffee b/modules/ServerAPI/src/client/AttachFile.coffee index 363705547..f2c1576c6 100644 --- a/modules/ServerAPI/src/client/AttachFile.coffee +++ b/modules/ServerAPI/src/client/AttachFile.coffee @@ -102,14 +102,14 @@ class BasicFileController extends AbstractFormController $(@el).empty() $(@el).html @template(@model.attributes) fileValue = @model.escape('fileValue') - urlValue = @model.excape('urlValue') + urlValue = @model.escape('urlValue') if ((fileValue is null or fileValue is "" or fileValue is undefined) and (urlValue is null or urlValue is "" or urlValue is undefined)) @createNewFileChooser() else if urlValue? @$('.bv_uploadFile').html '
'+urlValue+'
' else - @$('.bv_uploadFile').html '
'+@model.escape('comments')+'
' + @$('.bv_uploadFile').html '
'+@model.escape('comments')+'
' @$('.bv_recordedBy').html @model.escape("recordedBy") @$('.bv_recordedDate').html UtilityFunctions::convertMSToYMDDate @model.get("recordedDate") @ @@ -249,7 +249,7 @@ class AttachFileController extends BasicFileController if fileValue is null or fileValue is "" or fileValue is undefined @createNewFileChooser() else - @$('.bv_uploadFile').html '
'+@model.get('comments')+'
' + @$('.bv_uploadFile').html '
'+@model.get('comments')+'
' uneditableFileTypes = window.conf.experiment.uneditableFileTypes unless uneditableFileTypes?