Skip to content
This repository has been archived by the owner on Mar 19, 2020. It is now read-only.

Commit

Permalink
Fix 3 John with openbibles versions
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterOfTheTiger committed Aug 21, 2018
1 parent f4f4fdb commit c8b26d2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/script.js
Expand Up @@ -216,7 +216,11 @@ function loadChapters() {
chapters = a.book.chapters;
chapter.innerHTML = '';
if (chapters == 1) {
chapter.innerHTML = chapter.innerHTML + '<option value=\"1-' + a.book.versesPerChapter[0] + '\">' + '1-' + a.book.versesPerChapter[0] + '</option>';
if (theBook === '3 John') {
chapter.innerHTML = chapter.innerHTML + '<option value=\"1-' + '14' + '\">' + '1-' + '14' + '</option>';
} else {
chapter.innerHTML = chapter.innerHTML + '<option value=\"1-' + a.book.versesPerChapter[0] + '\">' + '1-' + a.book.versesPerChapter[0] + '</option>';
}
} else {
for (var x = 1; x < chapters + 1; x++) {
chapter.innerHTML = chapter.innerHTML + '<option value=\"' + (x) + '\">' + (x) + '</option>';
Expand Down

0 comments on commit c8b26d2

Please sign in to comment.