Author: tyrell
Date: Sun Jul 20 09:55:32 2008
New Revision: 19683
URL: http://wso2.org/svn/browse/wso2?view=rev&revision=19683

Log:
Fixing some invalid html tags inside the dialog boxes.

Modified:
   trunk/mashup/java/modules/www/cert_manager.jsp

Modified: trunk/mashup/java/modules/www/cert_manager.jsp
URL: 
http://wso2.org/svn/browse/wso2/trunk/mashup/java/modules/www/cert_manager.jsp?rev=19683&r1=19682&r2=19683&view=diff
==============================================================================
--- trunk/mashup/java/modules/www/cert_manager.jsp      (original)
+++ trunk/mashup/java/modules/www/cert_manager.jsp      Sun Jul 20 09:55:32 2008
@@ -104,13 +104,13 @@
     function handleUpload(o) {
         var responseText = o.responseText;
         if (responseText == null) {
-            WSO2.MashupUtils.dialog("An Exception occured", "Could not connect 
to backend service.<br><input type='button' value='Close' 
onclick='WSO2.MashupUtils.dialog.close();'", 300, 70);
+            WSO2.MashupUtils.dialog("An Exception occured", "Could not connect 
to backend service.<br><div style='text-align:right;'><input type='button' 
value='Close' onclick='WSO2.MashupUtils.dialog.close();'/></div>", 300, 70);
         } else {
             responseText = harvestMessage(responseText);              
             if (responseText.indexOf("Exception occured") != -1) {
-                WSO2.MashupUtils.dialog("An Exception occured", responseText + 
"<br><input type='button' value='Close' 
onclick='WSO2.MashupUtils.dialog.close();'", 300, 70);
+                WSO2.MashupUtils.dialog("An Exception occured", responseText + 
"<br><div style='text-align:right;'><input type='button' value='Close' 
onclick='WSO2.MashupUtils.dialog.close();'/></div>", 300, 70);
             } else {                  
-                WSO2.MashupUtils.dialog("Operation successfull", responseText 
+ "<br><input type='button' value='Close' onclick='handleSuccess();'", 300, 
70);                
+                WSO2.MashupUtils.dialog("Operation successfull", responseText 
+ "<br><div style='text-align:right;'><input type='button' value='Close' 
onclick='handleSuccess();'/></div>", 300, 70);
             }
         }
     }
@@ -129,9 +129,9 @@
         var form = document.getElementById(formId);
 
         if ((isFileUpload) && (document.getElementById("cert").value == "")) {
-            WSO2.MashupUtils.dialog("Insufficient data", "<pre>Please browse 
your file system for a valid certificate.</pre><br><input type='button' 
value='Close' onclick='WSO2.MashupUtils.dialog.close();'", 70, 70);
+            WSO2.MashupUtils.dialog("Insufficient data", "<pre>Please browse 
your file system for a valid certificate.</pre><br><div 
style='text-align:right;'><input type='button' value='Close' 
onclick='WSO2.MashupUtils.dialog.close();'/></div>", 70, 70);
         } else if ((!isFileUpload) && (document.getElementById("alias").value 
== "")) {
-            WSO2.MashupUtils.dialog("Insufficient data", "<pre>Please type an 
alias for the certificate.</pre><br><input type='button' value='Close' 
onclick='WSO2.MashupUtils.dialog.close();'", 70, 70);
+            WSO2.MashupUtils.dialog("Insufficient data", "<pre>Please type an 
alias for the certificate.</pre><br><div style='text-align:right;'><input 
type='button' value='Close' 
onclick='WSO2.MashupUtils.dialog.close();'/></div>", 70, 70);
         } else {
             if (isFileUpload) {
                 YAHOO.util.Connect.setForm(form, true, true);
@@ -147,13 +147,13 @@
         var form = document.getElementById(formId);
 
         if (document.getElementById("dataHandler").value == "") {
-            WSO2.MashupUtils.dialog("Insufficient data", "<pre>Please browse 
your file system for a valid KeyStore.</pre><br><input type='button' 
value='Close' onclick='WSO2.MashupUtils.dialog.close();'", 70, 70);
+            WSO2.MashupUtils.dialog("Insufficient data", "<pre>Please browse 
your file system for a valid KeyStore.</pre><br><div 
style='text-align:right;'><input type='button' value='Close' 
onclick='WSO2.MashupUtils.dialog.close();'/></div>", 70, 70);
         } else if (document.getElementById("keyStorePass").value == "") {
-            WSO2.MashupUtils.dialog("Insufficient data", "<pre>Please provide 
the Store Password of the KeyStore provided.</pre><br><input type='button' 
value='Close' onclick='WSO2.MashupUtils.dialog.close();'", 70, 70);
+            WSO2.MashupUtils.dialog("Insufficient data", "<pre>Please provide 
the Store Password of the KeyStore provided.</pre><br><div 
style='text-align:right;'><input type='button' value='Close' 
onclick='WSO2.MashupUtils.dialog.close();'/></div>", 70, 70);
         } else if (document.getElementById("privateKeyAlias").value == "") {
-            WSO2.MashupUtils.dialog("Insufficient data", "<pre>Please provide 
the Alias of the private key of the KeyStore provided.</pre><br><input 
type='button' value='Close' onclick='WSO2.MashupUtils.dialog.close();'", 70, 
70);
+            WSO2.MashupUtils.dialog("Insufficient data", "<pre>Please provide 
the Alias of the private key of the KeyStore provided.</pre><br><div 
style='text-align:right;'><input type='button' value='Close' 
onclick='WSO2.MashupUtils.dialog.close();'/></div>", 70, 70);
         } else if (document.getElementById("privateKeyPass").value == "") {
-            WSO2.MashupUtils.dialog("Insufficient data", "<pre>Please provide 
the password of the private key of the KeyStore provided.</pre><br><input 
type='button' value='Close' onclick='WSO2.MashupUtils.dialog.close();'", 70, 
70);
+            WSO2.MashupUtils.dialog("Insufficient data", "<pre>Please provide 
the password of the private key of the KeyStore provided.</pre><br><div 
style='text-align:right;'><input type='button' value='Close' 
onclick='WSO2.MashupUtils.dialog.close();'/></div>", 70, 70);
         } else {
             YAHOO.util.Connect.setForm(form, true, true);
             YAHOO.util.Connect.asyncRequest("POST", 
form.getAttribute("action"), callback, null);
@@ -217,9 +217,9 @@
 
     function addCertFromUrl() {
         if (document.getElementById("url").value == "") {
-            WSO2.MashupUtils.dialog("Insufficient data", "<pre>Please enter 
the URL of the site to add.</pre><br><input type='button' value='Close' 
onclick='WSO2.MashupUtils.dialog.close();'", 70, 70);
+            WSO2.MashupUtils.dialog("Insufficient data", "<pre>Please enter 
the URL of the site to add.</pre><br><div style='text-align:right;'><input 
type='button' value='Close' 
onclick='WSO2.MashupUtils.dialog.close();'/></div>", 70, 70);
         } else if (document.getElementById("alias_url").value == "") {
-            WSO2.MashupUtils.dialog("Insufficient data", "<pre>Please type an 
alias for the certificate.</pre><br><input type='button' value='Close' 
onclick='WSO2.MashupUtils.dialog.close();'", 70, 70);
+            WSO2.MashupUtils.dialog("Insufficient data", "<pre>Please type an 
alias for the certificate.</pre><br><div style='text-align:right;'><input 
type='button' value='Close' 
onclick='WSO2.MashupUtils.dialog.close();'/></div>", 70, 70);
         } else {
             var url = document.getElementById("url").value;
             var alias = document.getElementById("alias_url").value;
@@ -229,7 +229,7 @@
     }
 
     function displayCertSerial(certAlias, serial){
-        WSO2.MashupUtils.dialog("Certificate Serial Number for " + certAlias, 
"<pre>" + serial + "</pre><br><input type='button' value='Close' 
onclick='WSO2.MashupUtils.dialog.close();'", 70, 70);
+        WSO2.MashupUtils.dialog("Certificate Serial Number for " + certAlias, 
"<pre>" + serial + "</pre><br><div style='text-align:right;'><input 
type='button' value='Close' 
onclick='WSO2.MashupUtils.dialog.close();'/></div>", 70, 70);
     }
 
 </script>

_______________________________________________
Mashup-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/mashup-dev

Reply via email to