aboutsummaryrefslogtreecommitdiffstats
path: root/dbdocs/column.js
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2022-08-08 14:33:17 +0000
committerterminaldweller <thabogre@gmail.com>2022-08-08 14:33:17 +0000
commit8b6b707c085c2991bcc926d276cfbf0c8e23e9cb (patch)
treee172c59590ff30c1e540778e70e77de69c514966 /dbdocs/column.js
parentadded docs for the db using schemaspy (diff)
downloadmdrtl-8b6b707c085c2991bcc926d276cfbf0c8e23e9cb.tar.gz
mdrtl-8b6b707c085c2991bcc926d276cfbf0c8e23e9cb.zip
removed the docs, we no longer need them
Diffstat (limited to 'dbdocs/column.js')
-rw-r--r--dbdocs/column.js117
1 files changed, 0 insertions, 117 deletions
diff --git a/dbdocs/column.js b/dbdocs/column.js
deleted file mode 100644
index 3807132..0000000
--- a/dbdocs/column.js
+++ /dev/null
@@ -1,117 +0,0 @@
-var filterBy = function(tableType) {
-$.fn.dataTableExt.afnFiltering.length = 0;
-$.fn.dataTable.ext.search.push(
- function( settings, data, dataIndex ) {
- var type = data[1]; // use data for the Type column
-
- if ( type == tableType || tableType=='All' )
- {
- return true;
- }
- return false;
- }
-);
-}
-
-$(document).ready(function() {
- var activeObject;
- var table = $('#column_table').DataTable( {
- deferRender: true,
- data: tableData,
- columns: [
- { data: "tableName" },
- { data: "tableType" },
- { data: "name" },
- { data: "type" },
- { data: "length" },
- { data: "nullable" },
- { data: "autoUpdated" },
- { data: "defaultValue" },
- { data: "comments" }
- ],
- columnDefs: [
- {
- targets: 0,
- render: function ( data, type, row, meta ) {
- return '<a href="tables/'+data+'.html" target="_top">'+data+'</a>';
- }
- },
- {
- targets: 2,
- createdCell: function(td, cellData, rowData, row, col) {
- if (rowData.keyTitle.length > 0) {
- $(td).prop('title', rowData.keyTitle);
- }
- if (rowData.keyClass.length > 0) {
- $(td).addClass(rowData.keyClass);
- }
- }
- },
- {
- targets: 5,
- createdCell: function(td, cellData, rowData, row, col) {
- if (cellData == '√') {
- $(td).prop('title', "nullable");
- }
- }
- },
- {
- targets: 6,
- createdCell: function(td, cellData, rowData, row, col) {
- if (cellData == '√') {
- $(td).prop('title', "Automatically updated by the database");
- }
- }
- }
- ],
- lengthChange: false,
- paging: config.pagination,
- pageLength: 50,
- autoWidth: true,
- order: [[ 2, "asc" ]],
- buttons: [
- {
- text: 'All',
- action: function ( e, dt, node, config ) {
- filterBy('All');
- if (activeObject != null) {
- activeObject.active(false);
- }
- table.draw();
- }
- },
- {
- text: 'Tables',
- action: function ( e, dt, node, config ) {
- filterBy('Table');
- if (activeObject != null) {
- activeObject.active(false);
- }
- this.active( !this.active() );
- activeObject = this;
- table.draw();
- }
- },
- {
- text: 'Views',
- action: function ( e, dt, node, config ) {
- filterBy('View');
- if (activeObject != null) {
- activeObject.active(false);
- }
- this.active( !this.active() );
- activeObject = this;
- table.draw();
- }
- },
- {
- extend: 'columnsToggle',
- columns: '.toggle'
- }
- ]
-
- } );
-
- //schemaSpy.js
- dataTableExportButtons(table);
-} );