fix bug with nav to a page, and add pdfviewer.css.

This commit is contained in:
Brian Wilson
2013-02-21 03:15:08 -05:00
parent 1850528a99
commit 731f4abd8a
3 changed files with 744 additions and 4 deletions

View File

@@ -30,7 +30,7 @@ PDFJS.disableWorker = true;
var url = options['url'];
var pageNum = 1;
if (options.pageNum) {
pageNum = int(options.pageNum);
pageNum = options.pageNum;
}
var currentScale = 1.0;
var currentScaleValue = "1";
@@ -178,7 +178,7 @@ PDFJS.disableWorker = true;
// Check to see if
selectScaleOption = function(value) {
var options = $('#scaleSelect').options;
var options = $('#scaleSelect options');
var predefinedValueFound = false;
for (var i = 0; i < options.length; i++) {
var option = options[i];