Home › Forums › Comment box for SharePoint › v2.504 issues
- This topic has 12 replies, 2 voices, and was last updated 8 years, 10 months ago by kman3d.
-
AuthorPosts
-
-
February 8, 2016 at 15:27 #10163
v2.504 (vs. v2.503) have the following issues:
1. Cancel button don’t work
1.1 Due to that the edit comment is not getting closed after edit, and stays open.
2. Replay button don’t work -
February 8, 2016 at 15:53 #10165
Do you see any errors in the dev console? (hit F12 > Console).
Could you ensure you have the updated text values from the v2.504 version of “spjs-cBox_CEWP.js.txt”? – I have a hunch you are missing “discardCommentPrompt”.
Alexander
-
February 8, 2016 at 16:31 #10170
Hi,
Verified again, and just for testing I used your CEWP with only the references are changed to my site… I should state, that I see this issue when using the “richTextInputUsingTinyMCE”:false.Here is my config:
“textareaVisible”:false,
“containerWidth”:”330px”,
“replyLevels”:5,
“pageSize”:15,
“threadInitiallyCollapsed”:false,
“threadedCommentsIndent”:20,
“textareaHeight”:100,
“showProfileImage”:true,
“showUserEmail”:true,
“richTextInputUsingTinyMCE”:false,
“sendToRecycleBinWhenDeleting”:true,
“sortAscending”:false,
“colorMyComments”:false,
“authorCanEdit”:true,
“moderatorGroupIDorUserID”:[768],
“restrictWriteAccessToGroups”:[],
“enableAttachments”:true, // New in v2.5
“attachmentSizeLimit”:50 // In MB – New in v2.5
}; -
February 8, 2016 at 16:51 #10172
Hi,
The config should look like this:/* Configuration object */ var cBoxArg = { "placeholderID":"commentBoxInstanse_1", "threadID":location.pathname+(GetUrlKeyValue("ID") !== "" ? "?ID="+GetUrlKeyValue("ID") : ""), "blogMode":false,// Set this to true if you use this with a blog "storeCommentsOnRootSite":false, "multiInstanceMode":true, // set to false when upgrading from v1.x "text":{ "createdByPrefix":"Posted by ", "createdPrefix":" on ", "modifiedPrefix":"Modified: ", "modifiedByPrefix":" by ", "expandCollapse":["expand","collapse"], "newCommentText":"Leave a comment", "notSignedInText":"You must sign in to comment", "replyText":"Reply", "editText":"Edit", "submitText":"Submit comment", "canceText":"Cancel", "deleteThreadText":"Delete comment", "confirmDeletePrompt":"Please confirm that you want to delete the selected item and all replies below it.", "showMoreCommentsText":"Show more comments", "attachFileLabel":"Attach file", // New in v2.5 "deleteAttPrompt":"Are you sure you want to remove this attachment?", // New in v2.3 "localFilePathPrompt":"It looks like you have inserted a link to a file stored on your local computer. Please upload it as an attachment instead.", // New in v2.5 "failedToAddFile":"It looks like the file \"{0}\" is corrupt.", // New in v2.5 "uploadingFilesHeader":"Uploading files - stay on this page", // New in v2.5 "uploadFailedIllegalCharacters":"You cannot use the character(s) \"{0}\" in the file name. Please correct and retry the upload.", // New in v2.5 "attachmentSizeWarning":"Failed to add the attachment.\n\nThe file \"{0}\" is {1}, but the size limit for attachments is {2} MB.", // New in v2.5 "discardCommentPrompt":"Are you sure you want to discard changes?" // New in v2.5 }, "textareaVisible":false, "containerWidth":"550px", "replyLevels":3, "pageSize":15, "threadInitiallyCollapsed":true, "threadedCommentsIndent":15, "textareaHeight":100, "showProfileImage":true, "showUserEmail":true, "richTextInputUsingTinyMCE":true, "sendToRecycleBinWhenDeleting":true, "sortAscending":true, "colorMyComments":false, "authorCanEdit":false, "moderatorGroupIDorUserID":[], "restrictWriteAccessToGroups":[], "enableAttachments":true, // New in v2.5 "attachmentSizeLimit":50 // In MB - New in v2.5 };
Ensure you use the one from the v2.504 zip file.
Alexander
-
February 8, 2016 at 17:21 #10174
Still not working.
I have copy pasted from your replay and still get the same issue:
/* Configuration object */
var cBoxArg = {
“placeholderID”:”commentBoxInstanse_1″,
“threadID”:location.pathname+(GetUrlKeyValue(“ID”) !== “” ? “?ID=”+GetUrlKeyValue(“ID”) : “”),
“blogMode”:false,// Set this to true if you use this with a blog
“storeCommentsOnRootSite”:false,
“multiInstanceMode”:true, // set to false when upgrading from v1.x
“text”:{
“createdByPrefix”:”Posted by “,
“createdPrefix”:” on “,
“modifiedPrefix”:”Modified: “,
“modifiedByPrefix”:” by “,
“expandCollapse”:[“expand”,”collapse”],
“newCommentText”:”Leave a comment”,
“notSignedInText”:”You must sign in to comment”,
“replyText”:”Reply”,
“editText”:”Edit”,
“submitText”:”Submit comment”,
“canceText”:”Cancel”,
“deleteThreadText”:”Delete comment”,
“confirmDeletePrompt”:”Please confirm that you want to delete the selected item and all replies below it.”,
“showMoreCommentsText”:”Show more comments”,
“attachFileLabel”:”Attach file”, // New in v2.5
“deleteAttPrompt”:”Are you sure you want to remove this attachment?”, // New in v2.3
“localFilePathPrompt”:”It looks like you have inserted a link to a file stored on your local computer. Please upload it as an attachment instead.”, // New in v2.5
“failedToAddFile”:”It looks like the file \”{0}\” is corrupt.”, // New in v2.5
“uploadingFilesHeader”:”Uploading files – stay on this page”, // New in v2.5
“uploadFailedIllegalCharacters”:”You cannot use the character(s) \”{0}\” in the file name. Please correct and retry the upload.”, // New in v2.5
“attachmentSizeWarning”:”Failed to add the attachment.\n\nThe file \”{0}\” is {1}, but the size limit for attachments is {2} MB.”, // New in v2.5
“discardCommentPrompt”:”Are you sure you want to discard changes?” // New in v2.5
},
“textareaVisible”:false,
“containerWidth”:”330px”,
“replyLevels”:5,
“pageSize”:15,
“threadInitiallyCollapsed”:false,
“threadedCommentsIndent”:15,
“textareaHeight”:50,
“showProfileImage”:true,
“showUserEmail”:true,
“richTextInputUsingTinyMCE”:false,
“sendToRecycleBinWhenDeleting”:true,
“sortAscending”:false,
“colorMyComments”:false,
“authorCanEdit”:true,
“moderatorGroupIDorUserID”:[758],
“restrictWriteAccessToGroups”:[],
“enableAttachments”:true, // New in v2.5
“attachmentSizeLimit”:50 // In MB – New in v2.5
};SP.SOD.executeFunc(“sp.js”);
ExecuteOrDelayUntilScriptLoaded(function(){
spjs.cBox.init(cBoxArg);
},”sp.js”);
</script> -
February 8, 2016 at 17:33 #10176
Do you see any errors in the dev console (hit F12 > Console) when you click the “Cancel” button?
Alexander
-
February 8, 2016 at 18:03 #10178
Yes:
SCRIPT5007: Unable to get property ‘getContent’ of undefined or null reference
File: eval code (37121), Line: 1, Column: 49748* Not happening with v2.503
-
February 8, 2016 at 22:21 #10186
Hi,
Ahhh – got it. This should be fixed in v2.505 – can you download it and verify?Sorry for the inconvenience.
Alexander
-
February 10, 2016 at 10:43 #10221
Hi, I’ve tested v2.505.
Now the bug where Cancel doesn’t work is fixed, but the behavior is not as it was in v503.
When I leave a comment or Replay a comment the Text box is not closed after that… Which allows to post duplicate comments… -
February 12, 2016 at 22:59 #10252
Hi,
I cannot reproduce this issue. Do you see any errors in the dev console (hit F12 > Console)?If not, can you take a few screenshots or possibly use this tool to record whats happening? (it’s free)
PS: I see that I messed with the file version in v2.505, and it shows as v2.204 when you hover over the “cBox by SPJS” link.
Alexander
-
February 15, 2016 at 16:15 #10268
Hi Please see attached Video.
Notice how the Replay box stays open after submitting a replay.Attachments:
-
February 17, 2016 at 00:45 #10285
Thank you, I have now fixed this issue in v2.506 – can you please test this and let me know how this works out? – you find the changelog here
Sorry for the inconvenience,
Alexander -
February 17, 2016 at 14:49 #10292
Hi,
Everything looks good now!Thanks!
-
-
AuthorPosts
- You must be logged in to reply to this topic.