From 60b79f4e2b36fb5dfd84c728ec4c3df7d2729183 Mon Sep 17 00:00:00 2001 From: rpiazzi Date: Fri, 27 Jan 2012 09:25:57 +0000 Subject: Improved functionality of enabling local bku button and resending form when local sign is choosen git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@905 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- pdf-as-web/src/main/webapp/jsp/null_request_page.jsp | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/pdf-as-web/src/main/webapp/jsp/null_request_page.jsp b/pdf-as-web/src/main/webapp/jsp/null_request_page.jsp index 1e91b17..57c786b 100644 --- a/pdf-as-web/src/main/webapp/jsp/null_request_page.jsp +++ b/pdf-as-web/src/main/webapp/jsp/null_request_page.jsp @@ -115,7 +115,7 @@ //Hitting the SendRequest button and submitting the form when Local BKU is wanted function hitButton() { document.submitform.submit(); - deactivateSprachlink(); + //deactivateSprachlink(); disableElement("SendRequestButton"); if (document.getElementById("SendRequestButton")) { document.getElementById("SendRequestButton").value = ""; @@ -162,7 +162,9 @@ parentDocument.submitform.<%= FormFields.FIELD_SOURCE_FREETEXT %>.disabled=true; } if (<%=isServerBKU%>==true) { - parentDocument.getElementById('localbku').style.display = 'block'; + parentDocument.getElementById('localbkubuttondisabled').style.display = 'none'; + parentDocument.getElementById('localbkubutton').style.display = 'block'; + pause(700); } //parentDocument.getElementById('pdfalink').style.display = 'none'; //parentDocument.getElementById('pdfalinkdeaktiviert').style.display = 'block'; @@ -200,6 +202,14 @@ document.getElementById('pdfasverticalspace').className='pdfasverticalspaceinternetexplorer'; } } + + function pause(millis) { + var date = new Date(); + var curDate = null; + do { + curDate = new Date(); + } while(curDate-date < millis); + } --> @@ -227,6 +237,7 @@ <% if (!isExternalInvocation) { %> <% } else { %> -- cgit v1.2.3