aboutsummaryrefslogtreecommitdiffstats
path: root/dbdocs/routines.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/routines.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/routines.js')
-rw-r--r--dbdocs/routines.js70
1 files changed, 0 insertions, 70 deletions
diff --git a/dbdocs/routines.js b/dbdocs/routines.js
deleted file mode 100644
index cdc2350..0000000
--- a/dbdocs/routines.js
+++ /dev/null
@@ -1,70 +0,0 @@
-var filterBy = function(functionType) {
- $.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.toUpperCase() == functionType || functionType == 'All' )
- {
- return true;
- }
- return false;
- }
- );
-}
-
-$(document).ready(function() {
- var activeObject;
- var table = $('#routine_table').DataTable( {
- lengthChange: false,
- ordering: true,
- paging: config.pagination,
- pageLength: 50,
- autoWidth: true,
- processing: true,
- order: [[ 0, "asc" ]],
- buttons: [
- {
- text: 'All',
- action: function ( e, dt, node, config ) {
- filterBy('All');
- if (activeObject != null) {
- activeObject.active(false);
- }
- table.draw();
- }
- },
- {
- text: 'Functions',
- action: function ( e, dt, node, config ) {
- filterBy('FUNCTION');
- if (activeObject != null) {
- activeObject.active(false);
- }
- this.active( !this.active() );
- activeObject = this;
- table.draw();
- }
- },
- {
- text: 'Procedures',
- action: function ( e, dt, node, config ) {
- filterBy('PROCEDURE');
- if (activeObject != null) {
- activeObject.active(false);
- }
- this.active( !this.active() );
- activeObject = this;
- table.draw();
- }
- },
- {
- extend: 'columnsToggle',
- columns: '.toggle'
- }
- ]
- } );
-
- //schemaSpy.js
- dataTableExportButtons(table);
-} );