summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/js/share.js
diff options
context:
space:
mode:
authorMichael Gapczynski <GapczynskiM@gmail.com>2011-08-12 17:22:32 -0400
committerMichael Gapczynski <GapczynskiM@gmail.com>2011-08-12 17:22:32 -0400
commit497789cdd89b4a44844fa8409115dda745ff8c5b (patch)
tree3e9bb5e6e4e5177573f44823dcdc4263257abe0f /apps/files_sharing/js/share.js
parenta8e6be601698622753bc948924c4ef564ffccaaa (diff)
downloadnextcloud-server-497789cdd89b4a44844fa8409115dda745ff8c5b.tar.gz
nextcloud-server-497789cdd89b4a44844fa8409115dda745ff8c5b.zip
Clean up constructor for OC_Share, add some error handling for sharing files
Diffstat (limited to 'apps/files_sharing/js/share.js')
-rw-r--r--apps/files_sharing/js/share.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/files_sharing/js/share.js b/apps/files_sharing/js/share.js
index 2e284b868e5..4ba45901cb4 100644
--- a/apps/files_sharing/js/share.js
+++ b/apps/files_sharing/js/share.js
@@ -67,8 +67,10 @@ $(document).ready(function() {
url: OC.linkTo('files_sharing','ajax/share.php'),
cache: false,
data: data,
- success: function() {
- addUser(uid_shared_with, permissions, false);
+ success: function(result) {
+ if (result !== 'false') {
+ addUser(uid_shared_with, permissions, false);
+ }
}
});
});