mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-10 16:08:34 +01:00
Avoid re-adding to the same cache ID we just removed it from, fixes unresponsive script after adding
This commit is contained in:
parent
180c256a79
commit
a253a7b568
@ -701,6 +701,8 @@ var et2_calendar_event = et2_valueWidget.extend([et2_IDetachedDOM],
|
||||
old_daywise.splice(old_daywise.indexOf(this.options.value.id),1);
|
||||
egw.dataStoreUID(old_cache_id,old_daywise);
|
||||
}
|
||||
if(new_cache_id != old_cache_id)
|
||||
{
|
||||
if (new_daywise.indexOf(event.id) < 0)
|
||||
{
|
||||
new_daywise.push(event.id);
|
||||
@ -709,6 +711,7 @@ var et2_calendar_event = et2_valueWidget.extend([et2_IDetachedDOM],
|
||||
{
|
||||
egw.dataStoreUID(new_cache_id,new_daywise);
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user