(imageIndex, disableSave = false)
| 1034 | |
| 1035 | //Go to a specific comic image |
| 1036 | function goToImage(imageIndex, disableSave = false) |
| 1037 | { |
| 1038 | if(typeof imagesData[imageIndex] !== 'undefined') |
| 1039 | { |
| 1040 | if(!disableSave) |
| 1041 | progress.activeSave(); |
| 1042 | |
| 1043 | readingDirection = true; |
| 1044 | |
| 1045 | let newIndex = imagesData[imageIndex].position + 1; |
| 1046 | |
| 1047 | if(readingManga()) |
| 1048 | newIndex = (indexNum - newIndex) + 1; |
| 1049 | |
| 1050 | calculateRealReadingDirection(newIndex); |
| 1051 | |
| 1052 | goToIndex(newIndex); |
| 1053 | goToImageCL(imageIndex, true) |
| 1054 | } |
| 1055 | } |
| 1056 | |
| 1057 | //Go to a specific comic folder |
| 1058 | function goToFolder(folderIndex) |
no test coverage detected