Author: jonathan
Date: Tue Jan 22 16:37:20 2008
New Revision: 12714
Log:
Updated alert text errors to be slightly more informative than "error".
Also fixed a formatting glitch in ajax_comment.jsp.
Modified:
trunk/mashup/java/modules/www/ajax_comment.jsp
trunk/mashup/java/modules/www/index.jsp
trunk/mashup/java/modules/www/js/common.js
trunk/mashup/java/modules/www/mashup.jsp
trunk/mashup/java/modules/www/search.jsp
trunk/mashup/java/modules/www/user.jsp
Modified: trunk/mashup/java/modules/www/ajax_comment.jsp
==============================================================================
--- trunk/mashup/java/modules/www/ajax_comment.jsp (original)
+++ trunk/mashup/java/modules/www/ajax_comment.jsp Tue Jan 22 16:37:20 2008
@@ -86,10 +86,8 @@
%>
<tr>
- <td>
- <nobr><%=QueryParamUtils.friendlyDate(c.getTime())%></nobr>
- </td>
- <td><a href="user.jsp?name=<%=commenter%>"><%= RegistryUtils
+ <td nowrap><%=QueryParamUtils.friendlyDate(c.getTime())%></td>
+ <td nowrap><a href="user.jsp?name=<%=commenter%>"><%=
RegistryUtils
.getFullName(request, commenter) %></a>
(<%=commenter%>)
</td>
<td>
Modified: trunk/mashup/java/modules/www/index.jsp
==============================================================================
--- trunk/mashup/java/modules/www/index.jsp (original)
+++ trunk/mashup/java/modules/www/index.jsp Tue Jan 22 16:37:20 2008
@@ -143,8 +143,7 @@
"queryPath" : queryPath
},
onFailure: function (transport) {
- // todo: graceful error reporting
- alert("error");
+ alert("Trouble contacting WSO2 Mashup Server ajax service.
Please try again later.");
},
onSuccess: function (transport) {
// Clean up the controls of adjacent divs
@@ -172,8 +171,7 @@
"direction" : direction
},
onFailure: function (transport) {
- // todo: graceful error reporting
- alert("error");
+ alert("Trouble contacting WSO2 Mashup Server ajax service.
Please try again later.");
},
onSuccess: function (transport) {
// Normalize moving up and down into moving an item down.
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 Tue Jan 22 16:37:20 2008
@@ -45,7 +45,7 @@
"rating" : value
},
onFailure: function (transport) {
- alert("error");
+ alert("Trouble contacting WSO2 Mashup Server ajax service.
Please try again later.");
},
onSuccess: function (transport) {
$(ratingDivId).replace(transport.responseText);
@@ -75,7 +75,7 @@
$(ratingDivId).replace(transport.responseText);
},
onFailure: function (transport) {
- alert("error");
+ alert("Trouble contacting WSO2 Mashup Server ajax service. Please
try again later.");
}
});
}
Modified: trunk/mashup/java/modules/www/mashup.jsp
==============================================================================
--- trunk/mashup/java/modules/www/mashup.jsp (original)
+++ trunk/mashup/java/modules/www/mashup.jsp Tue Jan 22 16:37:20 2008
@@ -166,7 +166,7 @@
contentType: "text/html",
postBody: newValue,
onFailure: function (transport) {
- alert("error");
+ alert("Trouble contacting WSO2 Mashup Server ajax service.
Please try again later.");
},
onSuccess: function (transport) {
if (fieldtype == "fullName") {
@@ -194,7 +194,7 @@
$('tags_area').style.cursor = "default";
},
onFailure: function (transport) {
- alert("error");
+ alert("Trouble contacting WSO2 Mashup Server ajax service.
Please try again later.");
}
});
$("addtag_tag").value = "";
@@ -217,7 +217,7 @@
$('tags_area').style.cursor = "default";
},
onFailure: function (transport) {
- alert("error");
+ alert("Trouble contacting WSO2 Mashup Server ajax service.
Please try again later.");
}
});
}
@@ -249,7 +249,7 @@
$('comments_area').style.cursor = "default";
},
onFailure: function (transport) {
- alert("error");
+ alert("Trouble contacting WSO2 Mashup Server ajax service.
Please try again later.");
}
});
$("Comment_commentText").value = "";
@@ -272,7 +272,7 @@
$('comments_area').style.cursor = "default";
},
onFailure: function (transport) {
- alert("error");
+ alert("Trouble contacting WSO2 Mashup Server ajax service.
Please try again later.");
}
});
}
Modified: trunk/mashup/java/modules/www/search.jsp
==============================================================================
--- trunk/mashup/java/modules/www/search.jsp (original)
+++ trunk/mashup/java/modules/www/search.jsp Tue Jan 22 16:37:20 2008
@@ -381,7 +381,7 @@
"queryPath" : queryPath
},
onFailure: function (transport) {
- alert("error");
+ alert("Trouble contacting WSO2 Mashup Server ajax service.
Please try again later.");
},
onSuccess: function (transport) {
$('addToHomePage').disable();
Modified: trunk/mashup/java/modules/www/user.jsp
==============================================================================
--- trunk/mashup/java/modules/www/user.jsp (original)
+++ trunk/mashup/java/modules/www/user.jsp Tue Jan 22 16:37:20 2008
@@ -150,7 +150,7 @@
contentType: "text/html",
postBody: newValue,
onFailure: function (transport) {
- alert("error");
+ alert("Trouble contacting WSO2 Mashup Server ajax service.
Please try again later.");
},
onSuccess: function (transport) {
if (fieldtype == "fullName") {
_______________________________________________
Mashup-dev mailing list
[email protected]
http://www.wso2.org/cgi-bin/mailman/listinfo/mashup-dev