|
|
@ -76,6 +76,7 @@ define([
|
|
|
|
var shareButton = {
|
|
|
|
var shareButton = {
|
|
|
|
className: 'primary cp-share-with-friends',
|
|
|
|
className: 'primary cp-share-with-friends',
|
|
|
|
name: Messages.share_withFriends,
|
|
|
|
name: Messages.share_withFriends,
|
|
|
|
|
|
|
|
iconClass: '.fa.fa-shhare-alt',
|
|
|
|
onClick: function () {
|
|
|
|
onClick: function () {
|
|
|
|
var href;
|
|
|
|
var href;
|
|
|
|
nThen(function (waitFor) {
|
|
|
|
nThen(function (waitFor) {
|
|
|
@ -425,7 +426,8 @@ define([
|
|
|
|
makeCancelButton(),
|
|
|
|
makeCancelButton(),
|
|
|
|
!opts.sharedFolder && {
|
|
|
|
!opts.sharedFolder && {
|
|
|
|
className: 'secondary cp-nobar',
|
|
|
|
className: 'secondary cp-nobar',
|
|
|
|
name: Messages.share_linkOpen, // XXX add fa-eye icon
|
|
|
|
name: Messages.share_linkOpen,
|
|
|
|
|
|
|
|
iconClass: '.fa.fa-eye',
|
|
|
|
onClick: function () {
|
|
|
|
onClick: function () {
|
|
|
|
opts.saveValue();
|
|
|
|
opts.saveValue();
|
|
|
|
var v = opts.getLinkValue({
|
|
|
|
var v = opts.getLinkValue({
|
|
|
@ -441,7 +443,8 @@ define([
|
|
|
|
keys: [[13, 'ctrl']]
|
|
|
|
keys: [[13, 'ctrl']]
|
|
|
|
}, {
|
|
|
|
}, {
|
|
|
|
className: 'primary cp-nobar',
|
|
|
|
className: 'primary cp-nobar',
|
|
|
|
name: Messages.share_linkCopy, // XXX add fa-link icon
|
|
|
|
name: Messages.share_linkCopy,
|
|
|
|
|
|
|
|
iconClass: '.fa.fa-link',
|
|
|
|
onClick: function () {
|
|
|
|
onClick: function () {
|
|
|
|
opts.saveValue();
|
|
|
|
opts.saveValue();
|
|
|
|
var v = opts.getLinkValue({
|
|
|
|
var v = opts.getLinkValue({
|
|
|
@ -496,6 +499,7 @@ define([
|
|
|
|
{
|
|
|
|
{
|
|
|
|
className: 'primary',
|
|
|
|
className: 'primary',
|
|
|
|
name: Messages.share_linkCopy,
|
|
|
|
name: Messages.share_linkCopy,
|
|
|
|
|
|
|
|
iconClass: '.fa.fa-link',
|
|
|
|
onClick: function () {
|
|
|
|
onClick: function () {
|
|
|
|
Feedback.send('SHARE_EMBED');
|
|
|
|
Feedback.send('SHARE_EMBED');
|
|
|
|
var v = opts.getEmbedValue();
|
|
|
|
var v = opts.getEmbedValue();
|
|
|
@ -870,6 +874,7 @@ define([
|
|
|
|
{
|
|
|
|
{
|
|
|
|
className: 'primary',
|
|
|
|
className: 'primary',
|
|
|
|
name: Messages.share_linkCopy,
|
|
|
|
name: Messages.share_linkCopy,
|
|
|
|
|
|
|
|
iconClass: '.fa.fa-link',
|
|
|
|
onClick: function () {
|
|
|
|
onClick: function () {
|
|
|
|
var v = opts.getLinkValue();
|
|
|
|
var v = opts.getLinkValue();
|
|
|
|
var success = Clipboard.copy(v);
|
|
|
|
var success = Clipboard.copy(v);
|
|
|
@ -915,6 +920,7 @@ define([
|
|
|
|
}, {
|
|
|
|
}, {
|
|
|
|
className: 'primary',
|
|
|
|
className: 'primary',
|
|
|
|
name: Messages.share_mediatagCopy,
|
|
|
|
name: Messages.share_mediatagCopy,
|
|
|
|
|
|
|
|
iconClass: '.fa.fa-link',
|
|
|
|
onClick: function () {
|
|
|
|
onClick: function () {
|
|
|
|
var v = common.getMediatagFromHref(opts.fileData);
|
|
|
|
var v = common.getMediatagFromHref(opts.fileData);
|
|
|
|
var success = Clipboard.copy(v);
|
|
|
|
var success = Clipboard.copy(v);
|
|
|
|