From f0572551b3650844f11b3d49017af1cd731c2d25 Mon Sep 17 00:00:00 2001 From: Oskar Hahn Date: Sat, 17 May 2014 13:30:37 +0200 Subject: [PATCH] Fix default-slide-preview-url Fix #1246 --- openslides/core/templates/core/widget_customslide.html | 2 +- openslides/projector/urls.py | 5 ----- openslides/projector/views.py | 1 + 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/openslides/core/templates/core/widget_customslide.html b/openslides/core/templates/core/widget_customslide.html index e74678a78..a2ff73294 100644 --- a/openslides/core/templates/core/widget_customslide.html +++ b/openslides/core/templates/core/widget_customslide.html @@ -10,7 +10,7 @@ rel="tooltip" data-original-title="{% trans 'Show' %}">   - diff --git a/openslides/projector/urls.py b/openslides/projector/urls.py index 5689fbfc9..b266dc1d0 100644 --- a/openslides/projector/urls.py +++ b/openslides/projector/urls.py @@ -10,11 +10,6 @@ urlpatterns = patterns( views.ProjectorView.as_view(), name='projector_show'), - url(r'^preview/$', - views.ProjectorView.as_view(), - {'callback': None}, - name='projctor_preview_welcomepage'), - url(r'^preview/(?P[^/]*)/$', views.ProjectorView.as_view(), name='projector_preview'), diff --git a/openslides/projector/views.py b/openslides/projector/views.py index 8bcb59437..080d02284 100644 --- a/openslides/projector/views.py +++ b/openslides/projector/views.py @@ -50,6 +50,7 @@ class ActivateView(RedirectView): def pre_redirect(self, request, *args, **kwargs): if (kwargs['callback'] == 'mediafile' and 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, # we dont have to use set_active_slide, because is causes a content # reload.