blob: efd2b21038eaf2dc612fd5eb7d16091cb73876b3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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
});
}
|