Commentbox v3.x change log

v3.0.0.7 (January 09, 2019)

  • Fixed a bug where setting “showTopicCount”:false failed to remove the topic count placeholder and left the spinner.
  • Fixed a bug where setting “subscriptionEnabled”:false caused cBox to fail to load.
  • Fixed an issue where setting “showTopicInComment”:false did not remove topics from comments already created with a topic.
  • Added new setting for dateFormat – see use manual for details.

v3.0.0.6 (January 06, 2019)

  • Updated TinyMCE to v4.9.2.
  • Added option to intercept the adding and updating of comments with a custom function. This lets you add or update metadata for the comments directly, or trigger a custom function after a comment has been saved. To use this functionality you must add the functions you like to use to the page where the cBox is located.

Use this function to intercept the adding of a new comment:

function cBoxItemAdding(placeholderID,item){
// Add or update item attributes for example like this
item.YouCustomColumn = "Your custom value";
// Return the changed item
return item;
}

Use this function to do something after a comment has been added:

function cBoxItemAdded(placeholderID,data){
// add your custom code here
}

Use this function to intercept the updating of a comment:

function cBoxItemUpdating(placeholderID,item){
// Add or update item attributes for example like this
item.YouCustomColumn = "Your custom value";
// Return the changed item
return item;
}

Use this function to do something after a comment has been updated:

function cBoxItemUpdated(placeholderID,data){
// add your custom code here
}

v3.0.0.5 (December 22, 2018)

  • Changed the function used to add or update fields to the configuration list to be able to add or update fields when using custom topic, category or comment fields specified in the cBoxArg in spjs-cBox_CEWP.html. This is only relevant when reusing an existing list to store comments in.
  • Added a new setting commentFIN to the cBoxArg to be able to reuse an existing list for storing comments.
  • Made some minor adjustments to the spjs-cBox.css file to adjust the size of the search dropdown icon and the height of the category select.

v3.0.0.4 (December 19, 2018)

  • Added the “item” and “settings” as arguments to the spjs.cBox.REST_Email function for use by advanced users who want to customize this function.
  • Fixed a typo in the validation of the setting SearchEnabled. In the mains script this setting was mistakenly expected as SearchEnable – without the d.
  • Fixed an incompatibility with jQuery v3.x by changing one occurrence of andSelf() > addBack().

v3.0.0.3 (September 03, 2018)

  • Fixed an bug preventing the solution from working when used in the root of a domain – like https://contoso.sharepoint.com. In this setup, the base url of the resources would be interpreted as “/” and some of the function calls would fail because the path then would be start with double forward slashes.

Please note that I replaced v3.0.0.2 with v3.0.0.3 because I found one more place where this bug had to be fixed.

v3.0.0.0 (March 11, 2018)

Initial release for Comment Box v3.x.