diff options
Diffstat (limited to 'dbdocs/routines')
-rw-r--r-- | dbdocs/routines/routine.js | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/dbdocs/routines/routine.js b/dbdocs/routines/routine.js new file mode 100644 index 0000000..efd2b21 --- /dev/null +++ b/dbdocs/routines/routine.js @@ -0,0 +1,34 @@ +function enableAnchors() { + anchors.options.visible = 'always'; + anchors.add('h3'); +} + +$(document).ready(function() { + enableAnchors(); + + var table = $('#standard_table').DataTable( { + lengthChange: false, + bSort: false, + bPaginate: false, + autoWidth: true, + buttons: [ ] + } ); + + table.buttons().container() + .appendTo('#standard_table_wrapper .col-sm-6:eq(0)' ); +} ); + +var codeElement = document.getElementById("sql-script-codemirror"); +var editor = null; +if (null != codeElement) { + editor = CodeMirror.fromTextArea(codeElement, { + lineNumbers: true, + mode: 'text/x-sql', + indentWithTabs: true, + smartIndent: true, + lineNumbers: true, + matchBrackets: true, + autofocus: true, + readOnly: true + }); +} |