Skip to content

Commit

Permalink
Updates to release v1.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
kartik-v committed Jun 24, 2017
1 parent c419262 commit a4f363c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FileInput.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ public function init()
Html::addCssClass($this->options, 'file-loading');
}
if (isset($this->field) && isset($this->field->form) && !isset($this->field->form->options['enctype'])) {
$this->field->form->options['enctype'] = 'multipart/form-data';
}
$this->field->form->options['enctype'] = 'multipart/form-data';
}
$input = $this->getInput('fileInput');
$script = 'document.getElementById("' . $this->options['id'] . '").className.replace(/\bfile-loading\b/,"");';
if ($this->showMessage) {
Expand Down

0 comments on commit a4f363c

Please sign in to comment.