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