|
|
|
@ -22,8 +22,20 @@ $(document).ready(function () { |
|
|
|
}; |
|
|
|
} |
|
|
|
|
|
|
|
function isDoubleClicked(element) { |
|
|
|
if (element.data("isclicked")) return true; |
|
|
|
|
|
|
|
element.data("isclicked", true); |
|
|
|
setTimeout(function () { |
|
|
|
element.removeData("isclicked"); |
|
|
|
}, 500); |
|
|
|
} |
|
|
|
|
|
|
|
function registerClickOfReactionIcons($container) { |
|
|
|
$container.find('.cms-reaction-icon').each(function () { |
|
|
|
|
|
|
|
if (isDoubleClicked($(this))) return; |
|
|
|
|
|
|
|
var $icon = $(this); |
|
|
|
var reactionName = $icon.attr('data-reaction-name'); |
|
|
|
if ($icon.attr('data-click-action') === 'false') { |
|
|
|
|