// create element
var createdElement = elCreate('li');
createdElement.className = 'reactCountButton';
- createdElement.innerHTML = REACTION_TYPES[key].renderedIcon +' ';
+ createdElement.innerHTML = REACTION_TYPES[key].renderedIcon + ' ';
elData(createdElement, 'reaction-type-id', key);
var countSpan = elCreate('span');
if (this._cache.get(this._currentObjectId).get(this._currentReactionTypeId).has(this._currentPageNo)) {
var dialog = UiDialog.open(this, this._cache.get(this._currentObjectId).get(this._currentReactionTypeId).get(this._currentPageNo));
- UiDialog.setTitle('userReactionOverlay-'+ this._objectType, this._cache.get(this._currentObjectId).get(this._currentReactionTypeId).get('title'));
+ UiDialog.setTitle('userReactionOverlay-' + this._objectType, this._cache.get(this._currentObjectId).get(this._currentReactionTypeId).get('title'));
if (this._cache.get(this._currentObjectId).get(this._currentReactionTypeId).get('pageCount') > 1) {
var element = elBySel('.jsPagination', dialog.content);
_dialogSetup: function() {
return {
- id: 'userReactionOverlay-'+ this._objectType,
+ id: 'userReactionOverlay-' + this._objectType,
options: {
title: ""
},
this._containers.get(objectID).reactButton.classList.remove('active');
// update icon
- elBySel('img', this._containers.get(objectID).reactButton).src = WCF_PATH+'images/reaction/reactionIcon.svg';
+ elBySel('img', this._containers.get(objectID).reactButton).src = WCF_PATH + 'images/reaction/reactionIcon.svg';
elData(elBySel('img', this._containers.get(objectID).reactButton), 'reaction-type-id', 0);
}
);
DROP TABLE IF EXISTS wcf1_reaction_type;
-CREATE TABLE wcf1_reaction_type(
+CREATE TABLE wcf1_reaction_type (
reactionTypeID INT(10) NOT NULL AUTO_INCREMENT PRIMARY KEY,
title VARCHAR(255),
type TINYINT(1),