kopia lustrzana https://github.com/simonw/datasette
Don't auto-format SQL on page load, refs #600
rodzic
b6ad1fdc70
commit
3a96373459
|
@ -6,12 +6,6 @@ window.onload = () => {
|
||||||
if (sqlFormat && !readOnly) {
|
if (sqlFormat && !readOnly) {
|
||||||
sqlFormat.hidden = false;
|
sqlFormat.hidden = false;
|
||||||
}
|
}
|
||||||
if (readOnly) {
|
|
||||||
readOnly.innerHTML = sqlFormatter.format(readOnly.innerHTML);
|
|
||||||
}
|
|
||||||
if (sqlInput) {
|
|
||||||
sqlInput.value = sqlFormatter.format(sqlInput.value);
|
|
||||||
}
|
|
||||||
var editor = CodeMirror.fromTextArea(sqlInput, {
|
var editor = CodeMirror.fromTextArea(sqlInput, {
|
||||||
lineNumbers: true,
|
lineNumbers: true,
|
||||||
mode: "text/x-sql",
|
mode: "text/x-sql",
|
||||||
|
|
Ładowanie…
Reference in New Issue