From bd2db16ad9e536cc8bb04549a91f1b8277d4863f Mon Sep 17 00:00:00 2001 From: Mika Havela Date: Mon, 3 Mar 2008 16:49:37 +0000 Subject: Reporting back to the user that the previous action was preformed. Adding ordernumbers to the menu-file. git-svn-id: svn://svn.alpinelinux.org/acf/alpine-conf/trunk@792 ab2d0c66-481e-0410-8bed-d214d4d58bed --- lbu-controller.lua | 7 +++++++ lbu.menu | 8 ++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/lbu-controller.lua b/lbu-controller.lua index 8dbaccb..304b0ac 100644 --- a/lbu-controller.lua +++ b/lbu-controller.lua @@ -102,6 +102,10 @@ config = function (self) label="Apply above settings", type="submit", }) + if (self.clientdata.config_submit) then + config.config_submit.descr="* Changes has been saved!" + end + -- Disable buttons/commands that is usable for som reason if (config.lbu_included.option) and (#config.lbu_included.option == 0) then @@ -193,6 +197,9 @@ expert = function (self) label="Apply settings", type="submit", }) + if (self.clientdata.cmdsave) then + file.cmdsave.descr="* Changes has been saved!" + end local url = ENV["SCRIPT_NAME"] .. self.conf.prefix .. self.conf.controller diff --git a/lbu.menu b/lbu.menu index c702752..2c8704f 100644 --- a/lbu.menu +++ b/lbu.menu @@ -1,5 +1,5 @@ #CAT GROUP/DESC TAB ACTION -System LBU Status status -System LBU Commit commit -System LBU Config config -System LBU Expert expert +System 99Local_backups Status status +System 99Local_backups Commit commit +System 99Local_backups Config config +System 99Local_backups Expert expert -- cgit v1.2.3