routine.js (750B)
1 function enableAnchors() { 2 anchors.options.visible = 'always'; 3 anchors.add('h3'); 4 } 5 6 $(document).ready(function() { 7 enableAnchors(); 8 9 var table = $('#standard_table').DataTable( { 10 lengthChange: false, 11 bSort: false, 12 bPaginate: false, 13 autoWidth: true, 14 buttons: [ ] 15 } ); 16 17 table.buttons().container() 18 .appendTo('#standard_table_wrapper .col-sm-6:eq(0)' ); 19 } ); 20 21 var codeElement = document.getElementById("sql-script-codemirror"); 22 var editor = null; 23 if (null != codeElement) { 24 editor = CodeMirror.fromTextArea(codeElement, { 25 lineNumbers: true, 26 mode: 'text/x-sql', 27 indentWithTabs: true, 28 smartIndent: true, 29 lineNumbers: true, 30 matchBrackets: true, 31 autofocus: true, 32 readOnly: true 33 }); 34 }