Syntax correction

This commit is contained in:
Zuzanna 2025-06-11 15:49:03 +02:00
parent bfcfc9b60c
commit cc2be6b623

View File

@ -1757,7 +1757,7 @@ define([
var parsed = Hash.parsePadUrl(metadata.roHref);
// Forms: change "Open (read-only)" to "Open (as participant)"
if (parsed.type === "form") {
if (parsed.hash.indexOf('auditor') !== -1) {
if (parsed.hashData.auditorKey) {
$('.cp-app-drive-context-openro .cp-text').text(Messages.fc_open_formaud);
} else {
$('.cp-app-drive-context-openro .cp-text').text(Messages.fc_open_formro);