|
|
@ -444,13 +444,14 @@ define([
|
|
|
|
'class': 'fa fa-share-alt cp-toolbar-share-button',
|
|
|
|
'class': 'fa fa-share-alt cp-toolbar-share-button',
|
|
|
|
title: Messages.shareButton
|
|
|
|
title: Messages.shareButton
|
|
|
|
});
|
|
|
|
});
|
|
|
|
$shareBlock.click(function () {
|
|
|
|
var modal = UIElements.createShareModal({
|
|
|
|
UIElements.createShareModal({
|
|
|
|
|
|
|
|
origin: origin,
|
|
|
|
origin: origin,
|
|
|
|
pathname: pathname,
|
|
|
|
pathname: pathname,
|
|
|
|
hashes: hashes,
|
|
|
|
hashes: hashes,
|
|
|
|
common: Common
|
|
|
|
common: Common
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
$shareBlock.click(function () {
|
|
|
|
|
|
|
|
UI.openCustomModal(UI.dialog.tabs(modal));
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
toolbar.$leftside.append($shareBlock);
|
|
|
|
toolbar.$leftside.append($shareBlock);
|
|
|
@ -472,13 +473,14 @@ define([
|
|
|
|
'class': 'fa fa-share-alt cp-toolbar-share-button',
|
|
|
|
'class': 'fa fa-share-alt cp-toolbar-share-button',
|
|
|
|
title: Messages.shareButton
|
|
|
|
title: Messages.shareButton
|
|
|
|
});
|
|
|
|
});
|
|
|
|
$shareBlock.click(function () {
|
|
|
|
var modal = UIElements.createFileShareModal({
|
|
|
|
UIElements.createFileShareModal({
|
|
|
|
|
|
|
|
origin: origin,
|
|
|
|
origin: origin,
|
|
|
|
pathname: pathname,
|
|
|
|
pathname: pathname,
|
|
|
|
hashes: hashes,
|
|
|
|
hashes: hashes,
|
|
|
|
common: Common
|
|
|
|
common: Common
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
$shareBlock.click(function () {
|
|
|
|
|
|
|
|
UI.openCustomModal(UI.dialog.tabs(modal));
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
toolbar.$leftside.append($shareBlock);
|
|
|
|
toolbar.$leftside.append($shareBlock);
|
|
|
|