diff --git a/README.md b/README.md index 02098cb..3668076 100644 --- a/README.md +++ b/README.md @@ -133,7 +133,7 @@ If `id` was specified in the request, then the function will call `on_network_re * `calendar:get_events([start_date], [end_date], [cal_table])` - returns table of event tables of all calendars, start\_date - event start date, end\_date - event end date, cal\_table - calendar ID table; * `calendar:get_calendars()` - returns table of calendars tables; -* `calendar:open_event_dialog(id)` - opens an event in the system calendar. +* `calendar:show_event_dialog(id)` - opens an event in the system calendar. Event table format: diff --git a/README_ru.md b/README_ru.md index d808d4a..58b03b3 100644 --- a/README_ru.md +++ b/README_ru.md @@ -133,7 +133,7 @@ ui:prepare_context_menu({ * `calendar:get_events([start_date], [end_date], [cal_table])` - возвращает таблицу табдлиц событий всех календарей, start\_date - дата начала событий, end\_date - дата окончания событий, cal\_table - таблица идентификаторов календарей; * `calendar:get_calendars()` - возвращет таблицу таблиц календарей; -* `calendar:open_event_dialog(id)` - открывает событие в системном календаре. +* `calendar:show_event_dialog(id)` - открывает событие в системном календаре. Формат таблицы события: diff --git a/samples/calendar-sample.lua b/samples/calendar-sample.lua index e3d3cf2..546c68c 100644 --- a/samples/calendar-sample.lua +++ b/samples/calendar-sample.lua @@ -13,5 +13,5 @@ function on_resume() end function on_click(idx) - calendar:open_event_dialog(events[idx].id) + calendar:show_event_dialog(events[idx].id) end