diff options
-rw-r--r-- | pages/timers.ecpp | 9 |
1 files 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; </%session> <%request scope="page"> cTimer* timer; + TimerConflictNotifier timerNotifier; </%request> <%include>page_init.eh</%include> <%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 = ""; |