Move Presentation Mode related code from viewer.js to its own file
This commit is contained in:
parent
17a953c7b3
commit
bfc66626a0
6 changed files with 198 additions and 170 deletions
|
@ -14,7 +14,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
/* globals PDFView, SCROLLBAR_PADDING */
|
||||
/* globals PDFView, PresentationMode, SCROLLBAR_PADDING */
|
||||
|
||||
'use strict';
|
||||
|
||||
|
@ -59,7 +59,7 @@ var SecondaryToolbar = {
|
|||
|
||||
// Event handling functions.
|
||||
presentationModeClick: function secondaryToolbarPresentationModeClick(evt) {
|
||||
PDFView.presentationMode();
|
||||
PresentationMode.request();
|
||||
this.close();
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue