Changeset View
Changeset View
Standalone View
Standalone View
swh/web/assets/src/bundles/webapp/webapp-utils.js
Show First 20 Lines • Show All 131 Lines • ▼ Show 20 Lines | |||||
export function initTableRowLinks(trSelector) { | export function initTableRowLinks(trSelector) { | ||||
$(trSelector).on('click', function() { | $(trSelector).on('click', function() { | ||||
window.location = $(this).data('href'); | window.location = $(this).data('href'); | ||||
return false; | return false; | ||||
}); | }); | ||||
$('td > a').on('click', function(e) { e.stopPropagation(); }); | $('td > a').on('click', function(e) { e.stopPropagation(); }); | ||||
} | } | ||||
let reCaptchaActivated; | |||||
export function setReCaptchaActivated(activated) { | |||||
reCaptchaActivated = activated; | |||||
} | |||||
export function isReCaptchaActivated() { | |||||
return reCaptchaActivated; | |||||
} |