From 6bf04ba1af23df11bf1506e05824b2aec3ca4a45 Mon Sep 17 00:00:00 2001 From: Joachim Bauch Date: Fri, 25 Jul 2014 14:35:16 +0200 Subject: [PATCH] Always show uploaded presentation if no presentation is active yet. --- static/js/directives/presentation.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/directives/presentation.js b/static/js/directives/presentation.js index 17160faf..6e2534e5 100644 --- a/static/js/directives/presentation.js +++ b/static/js/directives/presentation.js @@ -518,8 +518,8 @@ define(['jquery', 'underscore', 'text!partials/presentation.html', 'bigscreen'], }); }); var presentation = uploadPresentation(file); - if ($scope.availablePresentations.length === 1) { - // this is the first presentation, show immediately + if (!$scope.currentPresentation) { + // no presentation active, show immediately $scope.selectPresentation(presentation); } };