phone: always use ajax to get list of phone calls (#15592)

This commit is contained in:
Frédéric Péters 2017-04-24 17:49:02 +02:00 committed by Thomas NOEL
parent c2e7a2fb69
commit b0f33b02ce
2 changed files with 3 additions and 1 deletions

View File

@ -41,6 +41,8 @@ class Home(object):
zone.request = self.request
context = RequestContext(self.request)
context.update(zone.get_context_data())
# always use ajax to get list of phone calls
del context['phonecalls']
tmpl = template.loader.get_template('welco/phone_home.html')
return tmpl.render(context)

View File

@ -572,7 +572,7 @@ $(function() {
});
}
}
window.setTimeout(check_calls, 1000);
check_calls();
}
$('.qualif').delegate('a.create-formdata', 'click', function() {