[rs-commit] r330 - in /rs-interop/trunk/src/site: resources/csr/certenroll.js xhtml5/csr/index.xhtml5

rs-commit at redwax.eu rs-commit at redwax.eu
Sun Mar 1 15:06:35 CET 2020


Author: minfrin at redwax.eu
Date: Sun Mar  1 15:06:34 2020
New Revision: 330

Log:
The continue button does not exist, but if it did...

Modified:
    rs-interop/trunk/src/site/resources/csr/certenroll.js
    rs-interop/trunk/src/site/xhtml5/csr/index.xhtml5

Modified: rs-interop/trunk/src/site/resources/csr/certenroll.js
==============================================================================
--- rs-interop/trunk/src/site/resources/csr/certenroll.js	(original)
+++ rs-interop/trunk/src/site/resources/csr/certenroll.js	Sun Mar  1 15:06:34 2020
@@ -81,7 +81,7 @@
                 catch (ex) {
                     console.log(ex);
                 }
-                document.getElementById('continue').disabled = false;
+                //document.getElementById('continue').disabled = false;
             }
         };
 

Modified: rs-interop/trunk/src/site/xhtml5/csr/index.xhtml5
==============================================================================
--- rs-interop/trunk/src/site/xhtml5/csr/index.xhtml5	(original)
+++ rs-interop/trunk/src/site/xhtml5/csr/index.xhtml5	Sun Mar  1 15:06:34 2020
@@ -274,7 +274,7 @@
                 catch (ex) {
                     console.log(ex);
                 }
-                document.getElementById('continue').disabled = false;
+                //document.getElementById('continue').disabled = false;
             }
         };
 
@@ -282,7 +282,8 @@
         xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
         xhr.setRequestHeader('Accept', 'application/pkcs7-mime');
         xhr.responseType = 'text';
-        var formData = new FormData(document.getElementById('createform'));
+        // var formData = new FormData(document.getElementById('createform'));
+        var formData  = encodeURIComponent('pkcs10') + '=' + encodeURIComponent(document.getElementById('pkcs10').value);
         console.log(formData);
         xhr.send(formData);
 
@@ -307,7 +308,8 @@
     }
 
     return true;
-});]]></code>
+});
+]]></code>
                 </pre>
               </div>
             </section>



More information about the rs-commit mailing list