forked from extern/egroupware
Make sure change callback doesn't run during template rendering
This commit is contained in:
parent
5f85d2a592
commit
5ae4da09cd
@ -220,6 +220,9 @@ app.classes.infolog = AppJS.extend(
|
|||||||
*/
|
*/
|
||||||
status_changed: function(changed_id, status_id, percent_id, datecompleted_id)
|
status_changed: function(changed_id, status_id, percent_id, datecompleted_id)
|
||||||
{
|
{
|
||||||
|
// Make sure this doesn't get executed while template is loading
|
||||||
|
if(this.et2 == null) return;
|
||||||
|
|
||||||
var status = document.getElementById(status_id);
|
var status = document.getElementById(status_id);
|
||||||
var percent = document.getElementById(percent_id);
|
var percent = document.getElementById(percent_id);
|
||||||
var datecompleted = document.getElementById(datecompleted_id+'[str]');
|
var datecompleted = document.getElementById(datecompleted_id+'[str]');
|
||||||
|
Loading…
Reference in New Issue
Block a user