Don't auto-format SQL on page load (#601)

Closes #600
pull/602/head
Simon Willison 2019-10-18 16:56:44 -07:00 zatwierdzone przez GitHub
rodzic b647b5efc2
commit e877b1cb12
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 0 dodań i 6 usunięć

Wyświetl plik

@ -6,12 +6,6 @@ window.onload = () => {
if (sqlFormat && !readOnly) {
sqlFormat.hidden = false;
}
if (readOnly) {
readOnly.innerHTML = sqlFormatter.format(readOnly.innerHTML);
}
if (sqlInput) {
sqlInput.value = sqlFormatter.format(sqlInput.value);
}
var editor = CodeMirror.fromTextArea(sqlInput, {
lineNumbers: true,
mode: "text/x-sql",