-
-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #173: Styling for FileInput additional line feed
Fix #173: Styling for FileInput additional line feed
- Loading branch information
Showing
2 changed files
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,8 +26,7 @@ | |
* @see https://github.com/kartik-v/bootstrap-fileinput | ||
* | ||
* @author Kartik Visweswaran <[email protected]> | ||
* @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 = '<strong>' . Yii::t('fileinput', 'Note:') . '</strong> ' . 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) . "<script>{$id}.removeClass('file-loading');</script>"; | ||
$input .= "\n<br>" . $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 "<!--[if {$validation}]>{$content}<![endif]-->"; | ||
return "<!--[if {$validation}]><br>{$content}<![endif]-->"; | ||
} | ||
|
||
/** | ||
|