From 8a90b7066622b295fe6b4669309ad8b1f348704f Mon Sep 17 00:00:00 2001 From: Kartik Visweswaran Date: Wed, 15 Oct 2014 18:40:35 +0530 Subject: [PATCH] Fix #173: Styling for FileInput additional line feed Fix #173: Styling for FileInput additional line feed --- CHANGE.md | 1 + FileInput.php | 7 +++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGE.md b/CHANGE.md index aa3d2a3..0a96c4f 100644 --- a/CHANGE.md +++ b/CHANGE.md @@ -4,6 +4,7 @@ version 3.1.0 1. enh #169: Enhancement for ICU format conversion for DatePicker and DateTimePicker (enrica, kartik-v). 2. bug #172: More correct InputWidget name field parsing. +3. enh #173: Fix styling for FileInput additional line feed. version 3.0.0 ============= diff --git a/FileInput.php b/FileInput.php index 3849d70..d7bdf5b 100644 --- a/FileInput.php +++ b/FileInput.php @@ -26,8 +26,7 @@ * @see https://github.com/kartik-v/bootstrap-fileinput * * @author Kartik Visweswaran - * @since 2.0: C - * + * @since 2.0 * @see http://twitter.github.com/typeahead.js/examples */ class FileInput extends InputWidget @@ -72,7 +71,7 @@ public function init() $validation = ArrayHelper::getValue($this->pluginOptions, 'showPreview', true) ? 'file preview and multiple file upload' : 'multiple file upload'; $message = '' . Yii::t('fileinput', 'Note:') . ' ' . Yii::t('fileinput', 'Your browser does not support {validation}. Try an alternative or more recent browser to access these features.', ['validation' => $validation]); $content = Html::tag('div', $message, $this->messageOptions) . ""; - $input .= "\n
" . $this->validateIE($content); + $input .= "\n" . $this->validateIE($content); } echo $input; } @@ -86,7 +85,7 @@ public function init() */ protected function validateIE($content, $validation = 'lt IE 10') { - return ""; + return ""; } /**