Author: jonathan
Date: Thu Jul 17 16:25:51 2008
New Revision: 19439
URL: http://wso2.org/svn/browse/wso2?view=rev&revision=19439

Log:
Fixed some dashboard detection typos.

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

Modified: trunk/mashup/java/modules/www/js/utils.js
URL: 
http://wso2.org/svn/browse/wso2/trunk/mashup/java/modules/www/js/utils.js?rev=19439&r1=19438&r2=19439&view=diff
==============================================================================
--- trunk/mashup/java/modules/www/js/utils.js   (original)
+++ trunk/mashup/java/modules/www/js/utils.js   Thu Jul 17 16:25:51 2008
@@ -107,21 +107,21 @@
 
     var dashboardHome = "../dashboard/index.jsp"
 
-    var xmlHttpRequest4dasboard = createXmlHttpRequest();
+    var xmlHttpRequest4dashboard = createXmlHttpRequest();
 
     //Make sure the XMLHttpRequest object was instantiated
-    if (xmlHttpRequest4dasboard)
+    if (xmlHttpRequest4dashboard)
     {
         //Check for requested web-accesible artifact (e.g. index.html)
-        xmlHttpRequest4dasboard.open("GET", dashboardHome, true);
+        xmlHttpRequest4dashboard.open("GET", dashboardHome, true);
 
-        xmlHttpRequest4dasboard.onreadystatechange = function () {
-            if (xmlHttpRequest4dasboard.readyState == 4) {
+        xmlHttpRequest4dashboard.onreadystatechange = function () {
+            if (xmlHttpRequest4dashboard.readyState == 4) {
 
                 try {
-                    if (xmlHttpRequest4dasboard.status == 200) {
+                    if (xmlHttpRequest4dashboard.status == 200) {
                         // Veryfying whether we really have the dashboard home
-                        if 
(xmlHttpRequest4dasboard.responseText.indexOf("Sorry. An error occured while 
processing your request.") == -1) {
+                        if 
(xmlHttpRequest4dashboard.responseText.indexOf("Sorry. An error occured while 
processing your request.") == -1) {
                             if (typeof callback != 'undefined') {
                                 callback.call(this);
                             }
@@ -129,12 +129,12 @@
 
                     }
                 } catch(ex) {
-                    isGadgetAvailable(callback);
+                    isDashboardAvailable(callback);
                 }
             }
         }
 
-        xmlHttpRequest4dasboard.send(null);
+        xmlHttpRequest4dashboard.send(null);
     }
 }
 

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

Reply via email to