mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 01:13:25 +01:00
Etemplate: If countdown time changes, avoid multiple updates / alarms
This commit is contained in:
parent
e19ab7edb2
commit
63e71dc96b
@ -101,6 +101,12 @@ export class et2_countdown extends et2_valueWidget {
|
||||
if (isNaN(_time)) return;
|
||||
|
||||
super.set_value(_time);
|
||||
|
||||
if(this.timer)
|
||||
{
|
||||
clearInterval(this.timer);
|
||||
}
|
||||
|
||||
this.time = new Date();
|
||||
this.time.setSeconds(this.time.getSeconds() + parseInt(_time));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user