Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing issues in forum comments #5844

Merged
merged 1 commit into from Nov 1, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -93,6 +93,7 @@
import org.wso2.carbon.identity.user.registration.stub.UserRegistrationAdminServiceStub;
import org.wso2.carbon.identity.user.registration.stub.dto.UserDTO;
import org.wso2.carbon.identity.user.registration.stub.dto.UserFieldDTO;
import org.wso2.carbon.registry.core.RegistryConstants;
import org.wso2.carbon.registry.core.exceptions.RegistryException;
import org.wso2.carbon.user.core.UserCoreConstants;
import org.wso2.carbon.user.core.UserRealm;
Expand Down Expand Up @@ -4741,7 +4742,7 @@ public static NativeObject jsFunction_getDocument(Context cx, Scriptable thisObj
String username = getUsernameFromObject(thisObj);
// Set anonymous user if no user is login to the system
if (username == null) {
username = APIConstants.END_USER_ANONYMOUS;
username = RegistryConstants.ANONYMOUS_USER;
}
String resource = (String) args[1];
String tenantDomain = (String) args[0];
Expand Down
Expand Up @@ -532,7 +532,8 @@ APIDesigner.prototype.init_controllers = function(){
var paramName = API_DESIGNER.api_doc.paths[operations][operation]['parameters'][i]['name'];

// @todo: param_string
jagg.message({content: 'Do you want to delete the parameter <strong>' + paramName + '</strong> ?',
jagg.message({content: 'Do you want to delete the parameter <strong>'
+ Handlebars.Utils.escapeExpression(paramName) + '</strong> ?',
type: 'confirm', title: i18n.t("Delete Parameter"),
okCallback: function () {
API_DESIGNER = APIDesigner();
Expand Down
Expand Up @@ -11,7 +11,7 @@
<div class="comment-body">
<span class="tip tip-down"></span>
<div class="comment-message">
<span class="comment-text word-break"><%=comment.comment%></span>
<span class="comment-text word-break"><%=encode.forHtml(comment.comment)%></span>
</div>
</div>
<div class="comment-extra"><%=i18n.localize("Posted By")%> <strong><%=comment.username%></strong> <%=i18n.localize("on")%> <span class="dateFull"><%=comment.createdTime%></span></div>
Expand Down
Expand Up @@ -580,7 +580,7 @@ $(document).ready(function () {
$('#messageModal div.modal-body').html(i18n.t('Do you want to remove this reply?'));
$('#messageModal h3.modal-title').html(i18n.t('Confirm Delete'));
$('#messageModal a.btn-primary').html(i18n.t('Yes'));
$('#messageModal a.btn-other').html(i18n.t('Yes'));
$('#messageModal a.btn-other').html(i18n.t('No'));
$('#messageModal a.btn-primary').click(function () {
$.ajax({
type: 'DELETE',
Expand Down