From 52d5bb5ae865dddf962f61012a0e7b2f8cb97262 Mon Sep 17 00:00:00 2001 From: ansuz Date: Mon, 26 Jul 2021 15:28:20 +0530 Subject: [PATCH] add notes to gather feedback about the new link feature --- www/common/common-ui-elements.js | 3 +++ www/common/drive-ui.js | 2 ++ www/common/inner/share.js | 1 + www/common/notifications.js | 1 + 4 files changed, 7 insertions(+) diff --git a/www/common/common-ui-elements.js b/www/common/common-ui-elements.js index 6114884b2..8b01ad652 100644 --- a/www/common/common-ui-elements.js +++ b/www/common/common-ui-elements.js @@ -3048,6 +3048,7 @@ define([ var buttons = [{ name: Messages.friendRequest_later, onClick: function () { + // XXX feedback if (clicked) { return true; } clicked = true; }, @@ -3056,6 +3057,7 @@ define([ className: 'primary', name: Messages.link_open, onClick: function () { + // XXX feedback if (clicked) { return true; } clicked = true; common.openUnsafeURL(url); @@ -3067,6 +3069,7 @@ define([ onClick: function () { if (clicked) { return; } clicked = true; + // XXX feedback common.getSframeChannel().query("Q_DRIVE_USEROBJECT", { cmd: "addLink", data: { diff --git a/www/common/drive-ui.js b/www/common/drive-ui.js index cd456fd41..0e3b340a4 100644 --- a/www/common/drive-ui.js +++ b/www/common/drive-ui.js @@ -1939,6 +1939,7 @@ define([ 'class': 'cp-app-drive-element-ctime cp-app-drive-element-list' }).text(getDate(data.ctime)); $element.append($type).append($adate).append($cdate); + // XXX feedback }; var _addOwnership = function ($span, $state, data) { if (data && Array.isArray(data.owners) && data.owners.indexOf(edPublic) !== -1) { @@ -2780,6 +2781,7 @@ define([ name: n, url: u }, refresh); + // XXX feedback }, keys: [13] }); diff --git a/www/common/inner/share.js b/www/common/inner/share.js index 5225ea818..125dcb5e2 100644 --- a/www/common/inner/share.js +++ b/www/common/inner/share.js @@ -111,6 +111,7 @@ define([ if (mailbox) { // Friend if (friends[curve] && !mailbox.notifications) { return; } if (mailbox.notifications && mailbox.curvePublic) { + // XXX feedback common.mailbox.sendTo("SHARE_PAD", { href: href, isStatic: Boolean(config.static), diff --git a/www/common/notifications.js b/www/common/notifications.js index 24458420e..78c29b90f 100644 --- a/www/common/notifications.js +++ b/www/common/notifications.js @@ -115,6 +115,7 @@ define([ }; content.handler = function() { if (msg.content.isStatic) { + // XXX feedback UIElements.displayOpenLinkModal(common, { curve: msg.author, href: msg.content.href,