Skip to content

Commit 7da50c6

Browse files
committed
simplemde field type fix; fixes #222
1 parent 11aabf1 commit 7da50c6

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ All Notable changes to `Backpack CRUD` will be documented in this file
2020
- Nothing
2121

2222

23+
## [3.1.38] - 2016-11-04
24+
25+
### Fixed
26+
- SimpleMDE field type did not allow multiple such field types in one form; fixes #222;
27+
28+
2329
## [3.1.37] - 2016-11-03
2430

2531
### Fixed

src/resources/views/fields/simplemde.blade.php

+4-3
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,12 @@
2727
{{-- FIELD JS - will be loaded in the after_scripts section --}}
2828
@push('crud_fields_scripts')
2929
<script src="https://cdn.jsdelivr.net/simplemde/latest/simplemde.min.js"></script>
30-
<script>
31-
var simplemde = new SimpleMDE({ element: $("#simplemde-{{ $field['name'] }}")[0] });
32-
</script>
3330
@endpush
3431

3532
@endif
33+
34+
<script>
35+
var simplemde = new SimpleMDE({ element: $("#simplemde-{{ $field['name'] }}")[0] });
36+
</script>
3637
{{-- End of Extra CSS and JS --}}
3738
{{-- ########################################## --}}

0 commit comments

Comments
 (0)