summaryrefslogtreecommitdiffstats
path: root/core/js/shareitemmodel.js
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-10-19 12:51:01 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2016-10-26 20:52:36 +0200
commit57e61250ac6c59fe93c65a95bfd2cb081cd3c34f (patch)
treeea4b59a13e34dbcd8e4fa355473d44848070aea4 /core/js/shareitemmodel.js
parentb98dfaccd96fb9b0da13bc59f55ed9b61cbbd528 (diff)
downloadnextcloud-server-57e61250ac6c59fe93c65a95bfd2cb081cd3c34f.tar.gz
nextcloud-server-57e61250ac6c59fe93c65a95bfd2cb081cd3c34f.zip
Remove notify recipient option
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'core/js/shareitemmodel.js')
-rw-r--r--core/js/shareitemmodel.js29
1 files changed, 0 insertions, 29 deletions
diff --git a/core/js/shareitemmodel.js b/core/js/shareitemmodel.js
index e8a0d17a7c2..ecc75ab147c 100644
--- a/core/js/shareitemmodel.js
+++ b/core/js/shareitemmodel.js
@@ -427,35 +427,6 @@
},
/**
- * Sends an email notification for the given share
- *
- * @param {int} shareType share type
- * @param {string} shareWith recipient
- * @param {bool} state whether to set the notification flag or remove it
- */
- sendNotificationForShare: function(shareType, shareWith, state) {
- var itemType = this.get('itemType');
- var itemSource = this.get('itemSource');
-
- return $.post(
- OC.generateUrl('core/ajax/share.php'),
- {
- action: state ? 'informRecipients' : 'informRecipientsDisabled',
- recipient: shareWith,
- shareType: shareType,
- itemSource: itemSource,
- itemType: itemType
- },
- function(result) {
- if (result.status !== 'success') {
- // FIXME: a model should not show dialogs
- OC.dialogs.alert(t('core', result.data.message), t('core', 'Warning'));
- }
- }
- );
- },
-
- /**
* Send the link share information by email
*
* @param {string} recipientEmail recipient email address