mirror of
https://github.com/humhub/humhub.git
synced 2025-01-17 14:18:27 +01:00
Merge pull request #2462 from githubjeka/patch-1
Update colorPickerField.php
This commit is contained in:
commit
ce549b543f
@ -5,10 +5,10 @@ use yii\helpers\Html;
|
||||
humhub\assets\HumHubColorPickerAsset::register($this);
|
||||
?>
|
||||
|
||||
<?= Html::activeTextInput($model, $field, ['class' => 'form-control', 'id' => $inputId, 'value' => $model->color, 'style' => 'display:none']); ?>
|
||||
<?= Html::activeTextInput($model, $field, ['class' => 'form-control', 'id' => $inputId, 'value' => $model->$field, 'style' => 'display:none']); ?>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
humhub.modules.ui.colorpicker.apply('#<?= $container ?>', '#<?= $inputId ?>', '<?= $model->color ?>')
|
||||
humhub.modules.ui.colorpicker.apply('#<?= $container ?>', '#<?= $inputId ?>', '<?= $model->$field ?>')
|
||||
});
|
||||
</script>
|
Loading…
x
Reference in New Issue
Block a user