Browse Source

Merge pull request #86 from fancycode/show_initial_presentation

Always show uploaded presentation if no presentation is active yet.
pull/87/head
Simon Eisenmann 12 years ago
parent
commit
e02b981f5d
  1. 4
      static/js/directives/presentation.js

4
static/js/directives/presentation.js

@ -518,8 +518,8 @@ define(['jquery', 'underscore', 'text!partials/presentation.html', 'bigscreen'],
}); });
}); });
var presentation = uploadPresentation(file); var presentation = uploadPresentation(file);
if ($scope.availablePresentations.length === 1) { if (!$scope.currentPresentation) {
// this is the first presentation, show immediately // no presentation active, show immediately
$scope.selectPresentation(presentation); $scope.selectPresentation(presentation);
} }
}; };

Loading…
Cancel
Save