mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
InputContainer: consistent input type in onInput() (#12012)
This commit is contained in:
@@ -242,11 +242,10 @@ function SortWidget:init()
|
||||
text = "",
|
||||
hold_input = {
|
||||
title = _("Enter page number"),
|
||||
input_type = "number",
|
||||
hint_func = function()
|
||||
return "(" .. "1 - " .. self.pages .. ")"
|
||||
return string.format("(1 - %s)", self.pages)
|
||||
end,
|
||||
type = "number",
|
||||
deny_blank_input = true,
|
||||
callback = function(input)
|
||||
local page = tonumber(input)
|
||||
if page and page >= 1 and page <= self.pages then
|
||||
|
||||
Reference in New Issue
Block a user