Projet

Général

Profil

0001-phone-always-use-ajax-to-get-list-of-phone-calls-155.patch

Frédéric Péters, 24 avril 2017 17:49

Télécharger (1,29 ko)

Voir les différences:

Subject: [PATCH] phone: always use ajax to get list of phone calls (#15592)

 welco/sources/phone/views.py | 2 ++
 welco/static/js/welco.js     | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)
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
-