Skip to content

Commit dd7321b

Browse files
committed
Update app.js
1 parent 40df93a commit dd7321b

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

static/js/app.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -413,12 +413,12 @@ function editCellValue(context) {
413413
return; // User cancelled the prompt
414414
}
415415

416-
var rowIdx = cell.closest("tr").index();
417-
var colIdx = cell.index();
418-
var tableName = $("#results").data("table");
419-
var colName = $("#results_header th").eq(colIdx).data("name");
420-
var pkColumn = $("#results_header th").eq(0).data("name");
421-
var pkValue = $("#results_body tr").eq(rowIdx).find("td").eq(0).text();
416+
var rowIdx = cell.closest("tr").index();
417+
var colIdx = cell.index();
418+
var tableName = $("#results").data("table");
419+
var colName = $("#results_header th").eq(colIdx).data("name");
420+
var pkColumn = $("#results_header th").eq(0).data("name");
421+
var pkValue = $("#results_body tr").eq(rowIdx).find("td").eq(0).text();
422422
var updateQuery = `UPDATE ${tableName} SET "${colName}" = '${newValue}' WHERE "${pkColumn}" = '${pkValue}';`;
423423

424424
executeQuery(updateQuery, function(data) {

0 commit comments

Comments
 (0)