https://issues.shibboleth.net/jira/browse/SSPCPP-585
authorScott Cantor <cantor.2@osu.edu>
Thu, 21 Nov 2013 17:57:31 +0000 (17:57 +0000)
committerScott Cantor <cantor.2@osu.edu>
Thu, 21 Nov 2013 17:57:31 +0000 (17:57 +0000)
configs/postTemplate.html

index 4883feb..d8c4728 100644 (file)
@@ -6,14 +6,14 @@
         function submitOnce() {
           if (location.hash.length>0) {
              if (confirm("Are you sure you want to resubmit this form information a second time?")) {
         function submitOnce() {
           if (location.hash.length>0) {
              if (confirm("Are you sure you want to resubmit this form information a second time?")) {
-                document.forms[0].submit();
+                document.getElementById("shib_continue").click();
              } else {
                 document.body.innerHTML="<html>Form information was not resubmitted.</html>";
              }
           } else {
              var loc = window.location;
              window.location = loc + "#submitted";
              } else {
                 document.body.innerHTML="<html>Form information was not resubmitted.</html>";
              }
           } else {
              var loc = window.location;
              window.location = loc + "#submitted";
-             document.forms[0].submit();
+             document.getElementById("shib_continue").click();
           }
         }
         // -->
           }
         }
         // -->
         <shibmlpfor PostedData>
             <input type="hidden" name="<shibmlp $name/>" value="<shibmlp $value/>"/>
         </shibmlpfor>
         <shibmlpfor PostedData>
             <input type="hidden" name="<shibmlp $name/>" value="<shibmlp $value/>"/>
         </shibmlpfor>
-        <noscript>
-        <div>
-        <input type="submit" name="_shib_continue_" value="Continue"/>
-        </div>
-        </noscript>
+        <input type="submit" id="shib_continue" name="_shib_continue_" value="Continue"/>
         </form>
     </body>
 </html>
         </form>
     </body>
 </html>