Preparing column editor for backend requests, remove simple col editor and reuse one for both cases

This commit is contained in:
2018-08-08 22:32:25 +02:00
parent 7aca9ded60
commit 9ca3b93847
8 changed files with 359 additions and 329 deletions
+3 -1
View File
@@ -79,7 +79,9 @@
ready(function() {
app.ColumnEditor('#column-editor', {
name: 'columns',
initialColumns: {!! old('columns', toJSON($columns)) !!},
xColumns: {!! old('columns', toJSON($columns)) !!},
newTable: true,
doSort: false,
})
});
</script>
@@ -14,11 +14,10 @@
@push('scripts')
<script>
ready(function() {
// TODO we need a better editor with ajax for adding, also with ordering
app.ColumnEditorAdvanced('#column-editor', {
app.ColumnEditor('#column-editor', {
name: 'columns',
route: {!! toJSON($table->draftUpdateRoute) !!},
initialColumns: {!! toJSON($columns) !!},
xColumns: {!! toJSON($columns) !!},
})
});
</script>