javascript warning: function does not always return a vlaue

This commit is contained in:
Sebastian Mendel
2005-11-18 13:28:29 +00:00
parent 2ae5e5f87d
commit 3115a8de77
2 changed files with 6 additions and 2 deletions

View File

@@ -22,6 +22,8 @@ $Source$
- no other calls to grab_gloabls.lib.php
* fixed minimum_common for css files
* header.inc.php: missing ; after &quot
* libraries/function.js::pdfPaperSize()
- javascript warning: function does not always return a vlaue
2005-11-17 Marc Delisle <lem9@users.sourceforge.net>
* Documentation.html: patch #1353283, thanks to Isaac Bennetch

View File

@@ -1063,8 +1063,8 @@ function dragPlace(no, axis, value) {
}
/**
* Returns paper sizes for a given format
*/
* Returns paper sizes for a given format
*/
function pdfPaperSize(format, axis) {
switch (format.toUpperCase()) {
case '4A0':
@@ -1215,4 +1215,6 @@ function pdfPaperSize(format, axis) {
if (axis == 'x') return 612.00; else return 936.00;
break;
} // end switch
return 0;
}