mirror of
https://github.com/flextype/flextype.git
synced 2025-08-25 14:10:44 +02:00
refactor(admin-plugin): decouple js components from base.html #186
Decouple: - forms-save
This commit is contained in:
@@ -253,17 +253,8 @@
|
||||
{% include "plugins/admin/views/partials/custom-file-input.html" %}
|
||||
{% include "plugins/admin/views/partials/trumbowyg.html" %}
|
||||
{% include "plugins/admin/views/partials/codemirror.html" %}
|
||||
{% include "plugins/admin/views/partials/forms-save.html" %}
|
||||
|
||||
{% block tail %}{% endblock %}
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
|
||||
$('.js-save-form-submit').click(function() {
|
||||
$("#form").submit();
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
5
site/plugins/admin/views/partials/forms-save.html
Normal file
5
site/plugins/admin/views/partials/forms-save.html
Normal file
@@ -0,0 +1,5 @@
|
||||
<script type="text/javascript">
|
||||
$('.js-save-form-submit').click(function() {
|
||||
$("#form").submit();
|
||||
});
|
||||
</script>
|
Reference in New Issue
Block a user