Skip to content

Commit

Permalink
Merge pull request #65 from talina2/j-dev
Browse files Browse the repository at this point in the history
J dev
  • Loading branch information
JDeffner authored Feb 6, 2024
2 parents 6024193 + 7a92031 commit e89d8c3
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/Models/PersonenModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function getDashboardData(): array
->get()->getResultArray();
}

public function getPersonenRowByEmail($email): array
public function getPersonenRowByEmail($email): array | null
{
return $this->db->table($this->table)
->where('email', $email)
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"slack": "https://codeigniterchat.slack.com"
},
"require": {
"php": "^7.4 || ^8.0",
"php": "^8.0",
"ext-intl": "*",
"ext-json": "*",
"ext-mbstring": "*",
Expand Down
1 change: 1 addition & 0 deletions public/resources/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ a {
width: 2.5em;
position: relative;
line-height: 1.65em;
cursor: pointer;
}

/*!* Navbar style*!*/
Expand Down
20 changes: 19 additions & 1 deletion public/resources/js/tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -311,4 +311,22 @@ function updateTaskSortIds(tasks) {
// console.log(response);
}
});
}
}


$(document).on('click', '.personenkuerzel', function (e) {
e.preventDefault();
let name = $(this).attr('title');


let searchParam = name;
$('#suchetasks').val(searchParam);
Suche();
});

document.addEventListener('keydown', function(event) {
if (!event.key.startsWith('F') && event.key !== 'Escape') {
// Set focus to the #suchetasks search field
document.getElementById('suchetasks').focus();
}
});

0 comments on commit e89d8c3

Please sign in to comment.