From 00f01057a37b1354c18f53d7d9b644b09c7531ea Mon Sep 17 00:00:00 2001 From: Dieter Hametner Date: Tue, 26 Feb 2008 20:11:12 +0100 Subject: Added SetTimerModification() to aktivation and deletion of timers from within the live plugin. --- pages/timers.ecpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pages/timers.ecpp b/pages/timers.ecpp index 029d447..9af9425 100644 --- a/pages/timers.ecpp +++ b/pages/timers.ecpp @@ -25,6 +25,7 @@ static const size_t maximumDescriptionLength = 300; <%request scope="page"> cTimer* timer; + TimerConflictNotifier timerNotifier; <%include>page_init.eh <%cpp> @@ -40,10 +41,14 @@ static const size_t maximumDescriptionLength = 300; timer = timers.GetByTimerId( timerid ); if ( timer == 0 ) throw HtmlError( tr("Couldn't find timer. Maybe you mistyped your request?") ); - if (action == "delete") + if (action == "delete") { LiveTimerManager().DelTimer(timer); - if (action == "toggle") + timerNotifier.SetTimerModification(); + } + if (action == "toggle") { LiveTimerManager().ToggleTimerActive(timer); + timerNotifier.SetTimerModification(); + } } string previousDay = ""; -- cgit v1.2.3