1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-23 13:23:18 +02:00

refactor(admin-plugin): remove unused js code from base.html #186

remove: js-settings-entry-modal
This commit is contained in:
Awilum
2019-08-26 23:56:03 +03:00
parent 81a9559f86
commit 070ca039d3
2 changed files with 3 additions and 7 deletions

View File

@@ -761,7 +761,7 @@ class EntriesController extends Controller
'save_entry' => [
'link' => 'javascript:;',
'title' => __('admin_save'),
'attributes' => ['class' => 'js-save-editor-form-submit float-right btn']
'attributes' => ['class' => 'js-save-form-submit float-right btn']
],
]
]
@@ -803,7 +803,7 @@ class EntriesController extends Controller
'save_entry' => [
'link' => 'javascript:;',
'title' => __('admin_save'),
'attributes' => ['class' => 'js-save-editor-form-submit float-right btn']
'attributes' => ['class' => 'js-save-form-submit float-right btn']
],
]
]
@@ -844,7 +844,7 @@ class EntriesController extends Controller
'save_entry' => [
'link' => 'javascript:;',
'title' => __('admin_save'),
'attributes' => ['class' => 'js-save-editor-form-submit float-right btn']
'attributes' => ['class' => 'js-save-form-submit float-right btn']
],
]
]

View File

@@ -262,10 +262,6 @@
$("#form").submit();
});
$('.js-save-editor-form-submit').click(function() {
$("#form").submit();
});
{% if is_current_path('admin.fieldsets.edit') or is_current_path('admin.templates.edit') or is_current_path('admin.snippets.edit') or (is_current_path('admin.entries.edit') and type == 'source') %}
var editor = CodeMirror.fromTextArea(document.getElementById("codeMirrorEditor"), {
lineNumbers: true,