Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

Commit

Permalink
Click on empty line numbers to jump to that point in the main window
Browse files Browse the repository at this point in the history
  • Loading branch information
TheIceCreamTroll committed Dec 13, 2021
1 parent c536080 commit 4faf8e1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/listmaker.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ function readme() {

function updateDirectory() {
ipc.send('open-folder-dialog');
ipc.on('selected-folder', function (result) {
if (result['canceled'] == false) {
ipc.on('selected-folder', function (event, result) {
if (result['canceled']==false) {
directoryPath = String(result['filePaths']);
if (! directoryPath == "") { loadFileList(directoryPath); }
else { return; }
else { return; }
}
})
}
Expand Down Expand Up @@ -120,10 +120,10 @@ function checkEmptyLines() {
const rows = document.getElementsByClassName("textBox");
let emptyLines = [];

for (let i = 0; i < rows.length; i++) { //Change this to only show the rows that are empty, without deleting all the non-empty ones ofc. Or.... Need to either reverse the order it goes in, or get the name/id instead of using i (since it's asceding instead of decsending.)
for (let i = 0; i < rows.length; i++) {
if (rows[i].value === "")
{
emptyLines.push(" " + rows[i].id);
emptyLines.push(" " + '<a onclick="document.getElementById((this.innerHTML)).focus();">'+rows[i].id+'</a>');
}
}
if (emptyLines.length !== 0) {
Expand Down

0 comments on commit 4faf8e1

Please sign in to comment.