Skip to content

Commit df746db

Browse files
committed
Minor Changes
1 parent c8b3766 commit df746db

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

layouts/fields/file.php

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,13 @@
1818
$params = JComponentHelper::getParams('com_media');
1919
$allowable = array_map('trim', explode(',', $params->get('upload_extensions')));
2020
$allowedMaxSize = $params->get('upload_maxsize');
21+
$document = JFactory::getDocument();
22+
$style = '.filesize-err {'
23+
. 'display: none;'
24+
. 'margin-top: 10px;'
25+
. '}';
26+
$document->addStyleDeclaration($style);
2127
?>
22-
<style>
23-
.filesize-err
24-
{
25-
display: none;
26-
margin-top: 10px;
27-
}
28-
</style>
2928
<div class="custom-file">
3029
<input id="<?php echo $field->name; ?>-<?php echo $module->id; ?>" accept="<?php foreach ($allowable as $type) { echo ".".$type.","; } ?>" type="file" name="jdscf[<?php echo $field->name; ?>]" class="custom-file-input" <?php echo implode(' ', $attrs); ?>>
3130
<label class="custom-file-label" for="<?php echo $field->name; ?>-file-input"><?php echo JText::_('MOD_JDSCF_FILE_BTN_LBL'); ?></label>

0 commit comments

Comments
 (0)