mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-28 19:03:14 +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;
|
if (isNaN(_time)) return;
|
||||||
|
|
||||||
super.set_value(_time);
|
super.set_value(_time);
|
||||||
|
|
||||||
|
if(this.timer)
|
||||||
|
{
|
||||||
|
clearInterval(this.timer);
|
||||||
|
}
|
||||||
|
|
||||||
this.time = new Date();
|
this.time = new Date();
|
||||||
this.time.setSeconds(this.time.getSeconds() + parseInt(_time));
|
this.time.setSeconds(this.time.getSeconds() + parseInt(_time));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user