diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2011-10-26 00:38:32 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2011-10-26 00:38:32 +0000 |
commit | 94225a83c951c6ce4146c6415dab2f0b4bf9276f (patch) | |
tree | c32ccb4379237a3a306fdd92cf8d26e0cb3128d9 /modules/admin-full/luasrc/controller/admin | |
parent | 6516d7ba5b943ab741626d1d728893480116b317 (diff) |
modules/admin-full: use firstchild() in services controller
Diffstat (limited to 'modules/admin-full/luasrc/controller/admin')
-rw-r--r-- | modules/admin-full/luasrc/controller/admin/services.lua | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/modules/admin-full/luasrc/controller/admin/services.lua b/modules/admin-full/luasrc/controller/admin/services.lua index 1e161d7649..aa1fd94ceb 100644 --- a/modules/admin-full/luasrc/controller/admin/services.lua +++ b/modules/admin-full/luasrc/controller/admin/services.lua @@ -15,16 +15,6 @@ $Id$ module("luci.controller.admin.services", package.seeall) function index() - local page - - page = node("admin", "services", "crontab") - page.target = form("admin_services/crontab") - page.title = _("Scheduled Tasks") - page.order = 50 - - page = node("admin", "services") - page.target = template("admin_services/index") - page.title = _("Services") - page.order = 40 - page.index = true + entry({"admin", "services"}, firstchild(), _("Services"), 40).index = true + entry({"admin", "services", "crontab"}, form("admin_services/crontab"), _("Scheduled Tasks"), 50) end |