1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-16 10:04:21 +02:00

chore(admin-plugin): typo update for entries media

This commit is contained in:
Awilum
2020-02-20 11:04:29 +03:00
parent acb63c9386
commit 004a41f000
2 changed files with 3 additions and 14 deletions

View File

@@ -761,7 +761,7 @@ class EntriesController extends Controller
'edit_entry_media' => [
'link' => $this->router->pathFor('admin.entries.edit') . '?id=' . $this->getEntryID($query) . '&type=media',
'title' => __('admin_media'),
'attributes' => ['class' => 'btn active']
'active' => true
],
'edit_entry_source' => [
'link' => $this->router->pathFor('admin.entries.edit') . '?id=' . $this->getEntryID($query) . '&type=source',

View File

@@ -23,7 +23,6 @@
{% for file in files %}
<div class="col-sm-2">
<div class="item">
<a
href="javascript:;"
{% if (filesystem_ext(file) in allowed_files) %}
@@ -47,6 +46,7 @@
</div>
</div>
{#
<div class="modal animated fadeIn faster image-preview-modal" id="entriesImagePreview" tabindex="-1" role="dialog" aria-labelledby="entriesImagePreviewLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
@@ -71,16 +71,5 @@
</div>
</div>
</div>
{% endblock %}
{% block tail %}
<script type="text/javascript">
$('.js-entries-image-preview').click(function () {
$('#entriesImagePreview').modal();
$('.js-entry-image-preview-placeholder').css('background-image', 'url(' + $(this).attr('data-image-url') + ')');
$('.js-entry-image-url-placeholder').val($(this).attr('data-image-url'));
$('.js-media-id').attr('value', $(this).attr('data-media-id'));
$('.js-entry-id').attr('value', $(this).attr('data-entry-id'));
});
</script>
#}
{% endblock %}