File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1091,7 +1091,7 @@ export function onloadSqlQueryEditEvents () {
10911091
10921092 var $form = $ ( this ) . parent ( ) . parent ( ) . find ( 'form' ) ;
10931093 var sqlQuery = ( $form . find ( 'input[name=\'sql_query\']' ) . val ( ) as string ) . trim ( ) ;
1094- var $innerSql = $ ( this ) . parent ( ) . parent ( ) . parent ( ) . prev ( ) . find ( 'code.sql' ) ;
1094+ var $innerSql = $ ( this ) . parent ( ) . parent ( ) . parent ( ) . prev ( ) . find ( 'code.sql' ) . closest ( 'pre' ) ;
10951095
10961096 var newContent = '<textarea name="sql_query_edit" id="sql_query_edit">' + escapeHtml ( sqlQuery ) + '</textarea>\n' ;
10971097 newContent += getForeignKeyCheckboxLoader ( ) ;
@@ -1141,7 +1141,7 @@ export function onloadSqlQueryEditEvents () {
11411141
11421142 $ ( document ) . on ( 'click' , 'input#sql_query_edit_discard' , function ( ) {
11431143 var $divEditor = $ ( 'div#inline_editor_outer' ) ;
1144- $divEditor . siblings ( 'code.sql ' ) . show ( ) ;
1144+ $divEditor . siblings ( 'pre ' ) . show ( ) ;
11451145 $divEditor . remove ( ) ;
11461146 } ) ;
11471147
You can’t perform that action at this time.
0 commit comments