bugfix in smartfs

This commit is contained in:
Alexander Weber 2016-11-14 22:48:32 +01:00
parent f4561f9a64
commit 2cd8ed4ded

View File

@ -1020,7 +1020,7 @@ smartfs.element("list", {
end, end,
submit = function(self, field, player) submit = function(self, field, player)
local _type = string.sub(field,1,3) local _type = string.sub(field,1,3)
local index = string.sub(field,5) local index = tonumber(string.sub(field,5))
self.data.selected = index self.data.selected = index
if _type == "CHG" and self._click then if _type == "CHG" and self._click then
self:_click(self.root, index, player) self:_click(self.root, index, player)