[Mashup-dev] svn commit r18873 - trunk/mashup/java/modules/www/js

channa at wso2.com channa at wso2.com
Sun Jul 6 09:54:23 PDT 2008


Author: channa
Date: Sun Jul  6 09:54:23 2008
New Revision: 18873
URL: http://wso2.org/svn/browse/wso2?view=rev&revision=18873

Log:
Displaying a new confirmation dialog with a link to the target service upon successful sharing of a mashup. MASHUP-887.


Modified:
   trunk/mashup/java/modules/www/js/mashup-utils.js

Modified: trunk/mashup/java/modules/www/js/mashup-utils.js
URL: http://wso2.org/svn/browse/wso2/trunk/mashup/java/modules/www/js/mashup-utils.js?rev=18873&r1=18872&r2=18873&view=diff
==============================================================================
--- trunk/mashup/java/modules/www/js/mashup-utils.js	(original)
+++ trunk/mashup/java/modules/www/js/mashup-utils.js	Sun Jul  6 09:54:23 2008
@@ -229,9 +229,20 @@
             this.req.responseXML.getElementsByTagName("return")[0].firstChild.nodeValue;
         }
 
+        // If share succeeds, close initiation dialog and show one with links to target and a close option.  
         if (response == "true") {
-            this.params.innerHTML =
-            "The service was successfully shared. You can safely close this window.";
+            WSO2.MashupUtils.dialog.close();
+            var mashupName = serviceName.split('-')[1];
+            var strShareSuccess = '<table align="center" border="0">' +
+                                  '<tr><td nowrap  height="25">The Mashup ' + mashupName + ' has been successfully shared!</td></tr>' +
+                                  '<tr><td nowrap  height="25">Click <a href="' + destAddress + SERVICE_PATH + '/'
+                    + destUsername + '/' + mashupName + '">here</a> to view the mashup on ' + destAddress
+                    + ', or <a href="javascript:WSO2.MashupUtils.dialog.close()">close</a> this window.</td></tr>' +
+                                  '</table>';
+
+            // Instantiate the Dialog
+            WSO2.MashupUtils.dialog("Mashup Sharing Successful", strShareSuccess, 500, 100, null);
+
 
         } else {
             this.params.innerHTML =



More information about the Mashup-dev mailing list