Author: tyrell
Date: Mon Feb 25 03:48:55 2008
New Revision: 14177
Log:
Enabling service editing even when the service is stopped.
Modified:
trunk/mashup/java/modules/www/taskbar.jsp
Modified: trunk/mashup/java/modules/www/taskbar.jsp
==============================================================================
--- trunk/mashup/java/modules/www/taskbar.jsp (original)
+++ trunk/mashup/java/modules/www/taskbar.jsp Mon Feb 25 03:48:55 2008
@@ -82,7 +82,7 @@
Service status not available
</li>
<li id="edit-service">
- Service editing is not available
+ <a
href="editor.jsp?action=edit&mashup=<%=paramPath%>&bounceback=<%=thisPage%>">Edit
this mashup</a>
</li>
@@ -145,20 +145,14 @@
if (serviceState) {
document.getElementById("service-status").innerHTML =
"Service started. [<a href='#'
onclick='WSO2.MashupUtils.handleServiceStartStop(\"<%=paramMashupServiceName%>\",
false, handleServiceStartStopCallback)'>Stop</a>]";
- //Enabling service editing
- document.getElementById("edit-service").innerHTML =
- '<a
href="editor.jsp?action=edit&mashup=<%=paramPath%>&bounceback=<%=thisPage%>">Edit
this service</a>';
- //Enabling service sharing
+ //Enabling service sharing
document.getElementById("share-mashup").innerHTML =
' <a href="#"
onclick="WSO2.MashupUtils.showMashupSharingDialog(\'<%=paramMashupServiceName%>\');">Share
this mashup</a>';
} else {
document.getElementById("service-status").innerHTML =
"Service stopped. [<a href='#'
onclick='WSO2.MashupUtils.handleServiceStartStop(\"<%=paramMashupServiceName%>\",
true, handleServiceStartStopCallback)'>Start</a>]";
- //Disabling service editing
- document.getElementById("edit-service").innerHTML =
- "Service editing is not available";
- //Disabling service sharing
+ //Disabling service sharing
document.getElementById("share-mashup").innerHTML =
"Service sharing is not available";
}
@@ -181,20 +175,14 @@
if (serviceMashupObject.getServiceStatus() == "true") {
document.getElementById("service-status").innerHTML =
"Service started. [<a href='#'
onclick='WSO2.MashupUtils.handleServiceStartStop(\"<%=paramMashupServiceName%>\",
false, handleServiceStartStopCallback)'>Stop</a>]";
- //Enabling service editing
- document.getElementById("edit-service").innerHTML =
- '<a
href="editor.jsp?action=edit&mashup=<%=paramPath%>&bounceback=<%=thisPage%>">Edit
this service</a>';
- //Enabling service sharing
+ //Enabling service sharing
document.getElementById("share-mashup").innerHTML =
' <a href="#"
onclick="WSO2.MashupUtils.showMashupSharingDialog(\'<%=paramMashupServiceName%>\');">Share
this mashup</a>';
} else {
document.getElementById("service-status").innerHTML =
"Service stopped. [<a href='#'
onclick='WSO2.MashupUtils.handleServiceStartStop(\"<%=paramMashupServiceName%>\",
true, handleServiceStartStopCallback)'>Start</a>]";
- //Disabling service editing
- document.getElementById("edit-service").innerHTML =
- "Service editing is not available";
- //Disabling service sharing
+ //Disabling service sharing
document.getElementById("share-mashup").innerHTML =
"Service sharing is not available";
_______________________________________________
Mashup-dev mailing list
[email protected]
http://www.wso2.org/cgi-bin/mailman/listinfo/mashup-dev