Skip to content

Commit e02b981

Browse files
committed
Merge pull request #86 from fancycode/show_initial_presentation
Always show uploaded presentation if no presentation is active yet.
2 parents c7be28e + 6bf04ba commit e02b981

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

static/js/directives/presentation.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -518,8 +518,8 @@ define(['jquery', 'underscore', 'text!partials/presentation.html', 'bigscreen'],
518518
});
519519
});
520520
var presentation = uploadPresentation(file);
521-
if ($scope.availablePresentations.length === 1) {
522-
// this is the first presentation, show immediately
521+
if (!$scope.currentPresentation) {
522+
// no presentation active, show immediately
523523
$scope.selectPresentation(presentation);
524524
}
525525
};

0 commit comments

Comments
 (0)