v2.504 issues

Home Forums Comment box for SharePoint v2.504 issues

Viewing 12 reply threads
  • Author
    Posts
    • #10163
      kman3d
      Participant

        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

      • #10165
        Alexander Bautz
        Keymaster

          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

        • #10170
          kman3d
          Participant

            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
            };

          • #10172
            Alexander Bautz
            Keymaster

              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

            • #10174
              kman3d
              Participant

                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>

              • #10176
                Alexander Bautz
                Keymaster

                  Do you see any errors in the dev console (hit F12 > Console) when you click the “Cancel” button?

                  Alexander

                • #10178
                  kman3d
                  Participant

                    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

                  • #10186
                    Alexander Bautz
                    Keymaster

                      Hi,
                      Ahhh – got it. This should be fixed in v2.505 – can you download it and verify?

                      Sorry for the inconvenience.

                      Alexander

                    • #10221
                      kman3d
                      Participant

                        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…

                      • #10252
                        Alexander Bautz
                        Keymaster

                          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

                        • #10268
                          kman3d
                          Participant

                            Hi Please see attached Video.
                            Notice how the Replay box stays open after submitting a replay.

                          • #10285
                            Alexander Bautz
                            Keymaster

                              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

                            • #10292
                              kman3d
                              Participant

                                Hi,
                                Everything looks good now!

                                Thanks!

                            Viewing 12 reply threads
                            • You must be logged in to reply to this topic.