|
|
|
@ -1647,13 +1647,12 @@ define([
|
|
|
|
|
|
|
|
|
|
paths = getSelectedPaths($element);
|
|
|
|
|
|
|
|
|
|
// Forms: change "Open (read-only)" to "Open (as participant)"
|
|
|
|
|
Messages.fc_open_formro = "Open (as participant)"; // XXX
|
|
|
|
|
$('.cp-app-drive-context-openro .cp-text').text(Messages.fc_open_ro);
|
|
|
|
|
if (paths.length === 1) {
|
|
|
|
|
var metadata = manager.getFileData(manager.find(paths[0].path));
|
|
|
|
|
if (metadata.roHref) {
|
|
|
|
|
var parsed = Hash.parsePadUrl(metadata.roHref);
|
|
|
|
|
// Forms: change "Open (read-only)" to "Open (as participant)"
|
|
|
|
|
if (parsed.type === "form") {
|
|
|
|
|
$('.cp-app-drive-context-openro .cp-text').text(Messages.fc_open_formro);
|
|
|
|
|
}
|
|
|
|
|