Fixed
This commit is contained in:
parent
60d2046b6d
commit
825a9a384d
1 changed files with 4 additions and 1 deletions
|
@ -71,11 +71,14 @@
|
||||||
|
|
||||||
@section('moar_scripts')
|
@section('moar_scripts')
|
||||||
<!-- bootstrap color picker -->
|
<!-- bootstrap color picker -->
|
||||||
|
<?php
|
||||||
|
$color = request()->old('color', $item->color) ? request()->old('color', $item->color) : '#AA3399';
|
||||||
|
?>
|
||||||
<script nonce="{{ csrf_token() }}">
|
<script nonce="{{ csrf_token() }}">
|
||||||
|
|
||||||
$(function() {
|
$(function() {
|
||||||
$('.color').colorpicker({
|
$('.color').colorpicker({
|
||||||
color: '#AA3399',
|
color: '{{ $color }}',
|
||||||
format: 'hex'
|
format: 'hex'
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue