Merge pull request #1290 from ostcar/fix_overlay_on_preview
Fixed default-slide-preview-url.
This commit is contained in:
commit
8d72345747
@ -10,7 +10,7 @@
|
|||||||
rel="tooltip" data-original-title="{% trans 'Show' %}">
|
rel="tooltip" data-original-title="{% trans 'Show' %}">
|
||||||
<i class="icon-facetime-video {% if welcomepage_is_active %}icon-white{% endif %}"></i>
|
<i class="icon-facetime-video {% if welcomepage_is_active %}icon-white{% endif %}"></i>
|
||||||
</a>
|
</a>
|
||||||
<a href="{% url 'projctor_preview_welcomepage' %}"
|
<a href="{% url 'projector_preview' callback='default' %}"
|
||||||
rel="tooltip" data-original-title="{% trans 'Preview' %}" class="btn btn-mini right">
|
rel="tooltip" data-original-title="{% trans 'Preview' %}" class="btn btn-mini right">
|
||||||
<i class="icon-search"></i>
|
<i class="icon-search"></i>
|
||||||
</a>
|
</a>
|
||||||
|
@ -10,11 +10,6 @@ urlpatterns = patterns(
|
|||||||
views.ProjectorView.as_view(),
|
views.ProjectorView.as_view(),
|
||||||
name='projector_show'),
|
name='projector_show'),
|
||||||
|
|
||||||
url(r'^preview/$',
|
|
||||||
views.ProjectorView.as_view(),
|
|
||||||
{'callback': None},
|
|
||||||
name='projctor_preview_welcomepage'),
|
|
||||||
|
|
||||||
url(r'^preview/(?P<callback>[^/]*)/$',
|
url(r'^preview/(?P<callback>[^/]*)/$',
|
||||||
views.ProjectorView.as_view(),
|
views.ProjectorView.as_view(),
|
||||||
name='projector_preview'),
|
name='projector_preview'),
|
||||||
|
@ -50,6 +50,7 @@ class ActivateView(RedirectView):
|
|||||||
def pre_redirect(self, request, *args, **kwargs):
|
def pre_redirect(self, request, *args, **kwargs):
|
||||||
if (kwargs['callback'] == 'mediafile' and
|
if (kwargs['callback'] == 'mediafile' and
|
||||||
get_active_slide()['callback'] == 'mediafile'):
|
get_active_slide()['callback'] == 'mediafile'):
|
||||||
|
# TODO: find a way to do this in the mediafile-app
|
||||||
# If the current slide is a pdf and the new page is also a slide,
|
# If the current slide is a pdf and the new page is also a slide,
|
||||||
# we dont have to use set_active_slide, because is causes a content
|
# we dont have to use set_active_slide, because is causes a content
|
||||||
# reload.
|
# reload.
|
||||||
|
Loading…
Reference in New Issue
Block a user