mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
NumberPicker: correct max day in input dialog (#7803)
This commit is contained in:
@@ -124,6 +124,9 @@ function NumberPickerWidget:init()
|
||||
local callback_input = nil
|
||||
if self.value_table == nil then
|
||||
callback_input = function()
|
||||
if self.date_month and self.date_year then
|
||||
self.value_max = self:getDaysInMonth(self.date_month:getValue(), self.date_year:getValue())
|
||||
end
|
||||
input_dialog = InputDialog:new{
|
||||
title = _("Enter number"),
|
||||
input_hint = T("%1 (%2 - %3)", self.formatted_value, self.value_min, self.value_max),
|
||||
|
||||
Reference in New Issue
Block a user