Skip to content

Commit

Permalink
Fix fileUpload pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
lionel-bonitasoft committed Oct 5, 2017
1 parent 8058f8d commit 94cb115
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/widgets/customFileUpload/template.tpl.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@
error-catcher="ctrl.uploadError(error)"
upload-options-enable-csrf
upload-options-csrf-param="CSRFToken">
<div class="input-group">
<div class="input-group file-upload">

<input type="text" ng-readonly="!ctrl.newFile" ng-focus="ctrl.preventFocus($event)" placeholder="{{properties.placeholder | uiTranslate}}" value="{{ctrl.filename}}" class="form-control" />

<input class="custom-file-upload-input"
ng-class="{'file-upload-input--disabled':$isUploading}"
name="{{ctrl.name}}" type="file"
ng-required="properties.required"
ng-model="ctrl.filemodel"

/>
<button type="button" ng-if="ctrl.filemodel" ng-click="ctrl.clear()" class="custom-file-upload-clear">
<i class="glyphicon glyphicon-remove-circle"></i>
Expand All @@ -50,12 +50,12 @@
</div>
</div>
</form>




</div>


<div ng-messages="$form[ctrl.name].$dirty && $form[ctrl.name].$error " ng-messages-include="forms-generic-errors.html" role="alert"></div>
</div>
</div>
</div>
</div>

0 comments on commit 94cb115

Please sign in to comment.