Skip to content
Snippets Groups Projects

Issue #3432104: Dislike button not working

Open Filipe Ferreira requested to merge issue/like_and_dislike-3432104:2.x into 2.x
2 files
+ 5
2
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 3
2
@@ -22,12 +22,13 @@
$widget.find('.vote-like, .vote-dislike').on({
keyup: function(event) {
if (event.which !== 13 && event.which !==32) return;
updateWidget('like', $(this).find('a'));
let elm = $(this).find('a');
updateWidget(elm.data('entity-op'), elm);
}
});
$widget.find('.vote-like a, .vote-dislike a').on({
click: function() {
updateWidget('like', $(this));
updateWidget($(this).data('entity-op'), $(this));
},
});
});
Loading