Implements periodic discovery prefs (wip)

This commit is contained in:
Simone Mainardi 2017-09-13 19:04:07 +02:00
parent 5db3192169
commit 60ad184cf3
5 changed files with 61 additions and 3 deletions

View file

@ -3324,7 +3324,7 @@ function makeResolutionButtons(fmt_to_data, ctrl_id, fmt, value, extra)
js_specific_code = string.gsub(js_specific_code, "\n", "")
if tonumber(value) ~= nil then
-- returns the new value with selected resolution
-- returns the new value with selected resolution
return {html=html, init=js_init_code, js=js_specific_code, value=tonumber(value) / fmt_to_data[selected].value}
else
return {html=html, init=js_init_code, js=js_specific_code, value=nil}