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:
@@ -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']
|
||||
],
|
||||
]
|
||||
]
|
||||
|
@@ -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,
|
||||
|
Reference in New Issue
Block a user