commit
483baa09ee
@ -73,6 +73,7 @@ class Projector(TemplateView, AjaxMixin):
|
|||||||
except AttributeError: #TODO: It has to be an Slide.DoesNotExist
|
except AttributeError: #TODO: It has to be an Slide.DoesNotExist
|
||||||
data = None
|
data = None
|
||||||
ajax = 'on'
|
ajax = 'on'
|
||||||
|
active_sid = get_active_slide(True)
|
||||||
else:
|
else:
|
||||||
data = get_slide_from_sid(sid)
|
data = get_slide_from_sid(sid)
|
||||||
ajax = 'off'
|
ajax = 'off'
|
||||||
@ -88,7 +89,7 @@ class Projector(TemplateView, AjaxMixin):
|
|||||||
# Projector Overlays
|
# Projector Overlays
|
||||||
if self.kwargs['sid'] is None:
|
if self.kwargs['sid'] is None:
|
||||||
active_defs = ProjectorOverlay.objects.filter(active=True) \
|
active_defs = ProjectorOverlay.objects.filter(active=True) \
|
||||||
.filter(Q(sid=sid) | Q(sid=None)).values_list('def_name',
|
.filter(Q(sid=active_sid) | Q(sid=None)).values_list('def_name',
|
||||||
flat=True)
|
flat=True)
|
||||||
for receiver, response in projector_overlays.send(sender=sid,
|
for receiver, response in projector_overlays.send(sender=sid,
|
||||||
register=False, call=active_defs):
|
register=False, call=active_defs):
|
||||||
|
Loading…
Reference in New Issue
Block a user