Skip to content

Commit 705f1a2

Browse files
Merge pull request #19731 from kamil-tekiela/Fix-edit-inline
Fix edit inline
2 parents d43f02f + b4217b0 commit 705f1a2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

resources/js/modules/functions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)