Replace deprecated functions in currency-ru-wdiget.lua
This commit is contained in:
@@ -25,7 +25,7 @@ function on_long_click()
|
|||||||
if history == "" then
|
if history == "" then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
ui:show_dialog("История курсов ЦБ\n"..nominal.." "..cur.." / "..base_cur,history)
|
dialogs:show_dialog("История курсов ЦБ\n"..nominal.." "..cur.." / "..base_cur,history)
|
||||||
end
|
end
|
||||||
|
|
||||||
function on_settings()
|
function on_settings()
|
||||||
@@ -38,7 +38,7 @@ function on_settings()
|
|||||||
idx = i
|
idx = i
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
ui:show_radio_dialog("Выберите валюту",names,idx)
|
dialogs:show_radio_dialog("Выберите валюту",names,idx)
|
||||||
end
|
end
|
||||||
|
|
||||||
function on_dialog_action(data)
|
function on_dialog_action(data)
|
||||||
@@ -64,7 +64,7 @@ function on_network_result_today(result,error)
|
|||||||
end
|
end
|
||||||
today = today..v.Nominal:value().." "..v.CharCode:value().." = "..v.Value:value():replace(",",".").." "..base_cur
|
today = today..v.Nominal:value().." "..v.CharCode:value().." = "..v.Value:value():replace(",",".").." "..base_cur
|
||||||
end
|
end
|
||||||
ui:show_dialog("Курсы валют ЦБ\n"..date_today,today)
|
dialogs:show_dialog("Курсы валют ЦБ\n"..date_today,today)
|
||||||
end
|
end
|
||||||
|
|
||||||
function on_network_result_history(result,error)
|
function on_network_result_history(result,error)
|
||||||
|
|||||||
Reference in New Issue
Block a user