fixes
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
-- description = "Виджет курса валюты. Нажмите на виджет, чтобы изменить валюту. Базовая валюта и дата меняются в контекстном меню."
|
-- description = "Виджет курса валюты. Нажмите на виджет, чтобы изменить валюту. Базовая валюта и дата меняются в контекстном меню."
|
||||||
-- data_source = "https://exchangerate.host/"
|
-- data_source = "https://exchangerate.host/"
|
||||||
-- type = "widget"
|
-- type = "widget"
|
||||||
|
-- language = "ru"
|
||||||
-- author = "Andrey Gavrilov"
|
-- author = "Andrey Gavrilov"
|
||||||
-- version = "2.0"
|
-- version = "2.0"
|
||||||
|
|
||||||
@@ -57,6 +58,7 @@ function on_click(idx)
|
|||||||
if idx == 1 then
|
if idx == 1 then
|
||||||
date = prev_date(date)
|
date = prev_date(date)
|
||||||
get_rates(date)
|
get_rates(date)
|
||||||
|
ui:show_toast("Загрузка")
|
||||||
elseif idx == 2 then
|
elseif idx == 2 then
|
||||||
dialog_id ="amount"
|
dialog_id ="amount"
|
||||||
ui:show_edit_dialog("Введите количество", "", amount)
|
ui:show_edit_dialog("Введите количество", "", amount)
|
||||||
@@ -69,6 +71,7 @@ function on_click(idx)
|
|||||||
elseif idx == 8 then
|
elseif idx == 8 then
|
||||||
date = next_date(date)
|
date = next_date(date)
|
||||||
get_rates(date)
|
get_rates(date)
|
||||||
|
ui:show_toast("Загрузка")
|
||||||
else
|
else
|
||||||
dialog_id = "date"
|
dialog_id = "date"
|
||||||
ui:show_edit_dialog("Введите дату курса", "Формат даты - 31.12.2020. Пустое значение - текущая дата", date:gsub("(%d+)-(%d+)-(%d+)", "%3.%2.%1"))
|
ui:show_edit_dialog("Введите дату курса", "Формат даты - 31.12.2020. Пустое значение - текущая дата", date:gsub("(%d+)-(%d+)-(%d+)", "%3.%2.%1"))
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
-- description = "Производственный календарь"
|
-- description = "Производственный календарь"
|
||||||
-- data_source = "https://isdayoff.ru/"
|
-- data_source = "https://isdayoff.ru/"
|
||||||
-- type = "widget"
|
-- type = "widget"
|
||||||
|
-- lang = "ru"
|
||||||
-- author = "Andrey Gavrilov"
|
-- author = "Andrey Gavrilov"
|
||||||
-- version = "1.0"
|
-- version = "1.0"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user