0001-phone-always-use-ajax-to-get-list-of-phone-calls-155.patch
welco/sources/phone/views.py | ||
---|---|---|
41 | 41 |
zone.request = self.request |
42 | 42 |
context = RequestContext(self.request) |
43 | 43 |
context.update(zone.get_context_data()) |
44 |
# always use ajax to get list of phone calls |
|
45 |
del context['phonecalls'] |
|
44 | 46 |
tmpl = template.loader.get_template('welco/phone_home.html') |
45 | 47 |
return tmpl.render(context) |
46 | 48 |
welco/static/js/welco.js | ||
---|---|---|
572 | 572 |
}); |
573 | 573 |
} |
574 | 574 |
} |
575 |
window.setTimeout(check_calls, 1000);
|
|
575 |
check_calls();
|
|
576 | 576 |
} |
577 | 577 | |
578 | 578 |
$('.qualif').delegate('a.create-formdata', 'click', function() { |
579 |
- |