Sha256: cf3ea40761031bfcc4bf7d45dac2fc2a4ca0ffb3f91a8a9e085a7ee5750adb77
Contents?: true
Size: 716 Bytes
Versions: 44
Compression:
Stored size: 716 Bytes
Contents
$(() => { const $moderationDetails = $(".moderation-details"); const $toggleContentButton = $moderationDetails.find(".toggle-content"); const $reportedContent = $moderationDetails.find(".reported-content"); const $currentContent = $reportedContent.find(".current"); const $originalContent = $reportedContent.find(".original"); $originalContent.hide(); $toggleContentButton.on("click", () => { $currentContent.toggle(); $originalContent.toggle(); if ($currentContent.is(":hidden")) { $toggleContentButton.html($toggleContentButton.data("see-current-button-label")); } else { $toggleContentButton.html($toggleContentButton.data("see-original-button-label")); } }) })
Version data entries
44 entries across 44 versions & 1 rubygems