Author: tyrell
Date: Thu Jan 17 09:00:49 2008
New Revision: 12431
Log:
Removing redundant code.
Modified:
trunk/mashup/java/modules/www/js/common.js
trunk/mashup/java/modules/www/mashup.jsp
Modified: trunk/mashup/java/modules/www/js/common.js
==============================================================================
--- trunk/mashup/java/modules/www/js/common.js (original)
+++ trunk/mashup/java/modules/www/js/common.js Thu Jan 17 09:00:49 2008
@@ -79,10 +79,3 @@
}
-function showFaultDetails(elementIdSuffix) {
- var textArea = document.getElementById("txt_" + elementIdSuffix);
- var contentDiv = document.getElementById(elementIdSuffix);
- contentDiv.innerHTML =
- "<pre>" + textArea.value + "</pre>";
-}
-
Modified: trunk/mashup/java/modules/www/mashup.jsp
==============================================================================
--- trunk/mashup/java/modules/www/mashup.jsp (original)
+++ trunk/mashup/java/modules/www/mashup.jsp Thu Jan 17 09:00:49 2008
@@ -81,7 +81,7 @@
//This is the service name understood by WSAS and should be used in all
calls to WSAS services
String mashupServiceName = author + "-" + mashup;
- //Checking whether this is a faulty service, in which case most of the
options will be disabled
+ //Checking whether this is a faulty service, in which case it will be
redirected to the fault details page
boolean faultyService = RegistryUtils.isFaultyMashup(registry,path);
if(faultyService){
response.sendRedirect("faulty_mashup.jsp?path=" + path);
@@ -335,39 +335,6 @@
<a href="#"
onclick="WSO2.MashupUtils.showCreateMashupDialog('<%=currentUser%>');">Create a
new service</a>
</li>
-<li>
- <script type="text/javascript">
- function listFaultyServicesCallback() {
- var response ;
-
- var browser = WSRequest.util._getBrowser();
- if (browser == "ie" || browser == "ie7") {
- response =
- this.req.responseXML.getElementsByTagName("ns:return");
- } else {
- response =
- this.req.responseXML.getElementsByTagName("return");
- }
-
- var serviceList = "";
-
- for (var x = 0; x < response.length; x++) {
- serviceList =
- serviceList + "Faulty Service: " +
response[x].childNodes[1].firstChild.nodeValue +
- "<br><br>";
- serviceList =
- serviceList + response[x].childNodes[0].firstChild.nodeValue +
"<br><hr>";
- }
-
- document.getElementById("faulty-service-list").innerHTML =
- "<pre>" + serviceList + "</pre>";
- document.getElementById("faulty-services").style.display =
"inline";
- }
- </script>
-
- <a href="#"
onclick="wso2.mashup.services.getFaultyServices(listFaultyServicesCallback);">List
- faulty services</a>
-</li>
<%}%>
<li id="share-mashup">
@@ -699,12 +666,6 @@
</div>
<br/>
-
-<div id="faulty-services" style="display:none;">
- <div class="heading">Faulty Services</div>
- <div id="faulty-service-list"></div>
-</div>
-
</td>
</tr>
_______________________________________________
Mashup-dev mailing list
[email protected]
http://www.wso2.org/cgi-bin/mailman/listinfo/mashup-dev