Commit d7300314 authored by Ivan Tyagov's avatar Ivan Tyagov

Add JavaScript function to allow type in PDF thumbnail page selection in a...

Add JavaScript function to allow type in PDF thumbnail page selection in a similar way as listbox type in navigation.
parent ed2f65bc
...@@ -364,6 +364,17 @@ function submitLinkAsHtmlForm(event){\n ...@@ -364,6 +364,17 @@ function submitLinkAsHtmlForm(event){\n
return false;\n return false;\n
}\n }\n
\n \n
function redirectPDFPage(event, element){\n
/*\n
Used in PDF thumbnail preview mode\n
*/\n
if(event.keyCode == 13){\n
selection_index = parseInt($(element).val()) - 1;\n
window.location.href = "PDF_viewHTMLPreviewAsImage?selection_index=" + selection_index;\n
return false; \n
}\n
}\n
\n
if (navigator.userAgent.toLowerCase().indexOf(\'firefox\') != -1)\n if (navigator.userAgent.toLowerCase().indexOf(\'firefox\') != -1)\n
$(document).ready(rewriteIndentedSelect);\n $(document).ready(rewriteIndentedSelect);\n
$(document).ready(resizeIFrameOnLoad);\n $(document).ready(resizeIFrameOnLoad);\n
......
17 18
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment