mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-29 21:38:49 +01:00
Fix #1059. make check on new context case insensitive
entering "home" with existing context "Home" will not show a confirmation dialog anymore.
This commit is contained in:
parent
ee3ba62152
commit
bd98984669
1 changed files with 2 additions and 1 deletions
|
|
@ -410,7 +410,8 @@ var TodoItems = {
|
|||
|
||||
if (contexts) {
|
||||
for (var i=0; i<contexts.length; i++) {
|
||||
if (contexts[i].value === givenContextName) {
|
||||
// do case insensitive check, so Home == home
|
||||
if (contexts[i].value.toLowerCase() === givenContextName.toLowerCase()) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue