| 1937 | | 1937 | |
| 1938 | let content = '<span>Apply your custom sorting to the "Order" field. The Order values will go down from the chosen number.</span>'; | 1938 | let content = '<span>Apply your custom sorting to the "Order" field. The Order values will go down from the chosen number.</span>'; |
| 1939 | if (moreThan100) { | 1939 | if (moreThan100) { |
| 1940 | content += `<div class="m-t-1"><i class="fa-solid fa-triangle-exclamation" style="color: #FFD43B;"></i> More than 100 entries in this world. You have to choose a number higher than that to work.<br />(Usual default: 100)<br />Minimum: ${entryCount}</div>`; | 1940 | content += `<div class="m-t-1"><i class="fa-solid fa-triangle-exclamation" style="color: #FFD43B;"></i> More than 100 entries in this world. If you don't choose a number higher than that, the lower entries will default to 0.<br />(Usual default: 100)<br />Minimum: ${entryCount}</div>`; |
| 1941 | } | 1941 | } |
| 1942 | | 1942 | |
| 1943 | const result = await Popup.show.input('Apply Custom Sorting', content, moreThan100 ? '' : '100', { okButton: 'Apply', cancelButton: 'Cancel' }); | 1943 | const result = await Popup.show.input('Apply Custom Sorting', content, '100', { okButton: 'Apply', cancelButton: 'Cancel' }); |
| 1944 | if (!result) return; | 1944 | if (!result) return; |
| 1945 | | 1945 | |
| 1946 | const start = Number(result); | 1946 | const start = Number(result); |