Add code to generate options in 'table-editable.js' to match RECORDS_ALLOW_EDIT in the config.py file.

This commit is contained in:
Ivan Filippov
2016-03-07 19:52:54 -07:00
parent a4df1e47fe
commit b5023d9d57
4 changed files with 11 additions and 6 deletions

View File

@ -185,7 +185,8 @@
<script src="{{ url_for('static', filename='admin/pages/scripts/table-editable.js') }}"></script>
<!-- END TABLE PLUGINS -->
<script>
jQuery(document).ready(function() {
jQuery(document).ready(function() {
window.records_allow_edit = {{ editable_records|tojson }};
Metronic.init(); // init metronic core componets
Layout.init(); // init layout
TableEditable.init();