diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-05-14 13:29:03 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2014-06-14 10:13:24 +0200 |
commit | cf5a72c10398bb18817cff8ca4dfba4429a97123 (patch) | |
tree | d9ede2e59296746411c2781c1fe074d38af3235d /apps/files_sharing/js/external.js | |
parent | d7de35376d7e068abdfb49e8336feab25e313662 (diff) | |
download | nextcloud-server-cf5a72c10398bb18817cff8ca4dfba4429a97123.tar.gz nextcloud-server-cf5a72c10398bb18817cff8ca4dfba4429a97123.zip |
Add interface for adding a public share to a different ownCloud instance
Diffstat (limited to 'apps/files_sharing/js/external.js')
-rw-r--r-- | apps/files_sharing/js/external.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_sharing/js/external.js b/apps/files_sharing/js/external.js index 0fa99a1652b..1e46b35c53b 100644 --- a/apps/files_sharing/js/external.js +++ b/apps/files_sharing/js/external.js @@ -22,7 +22,7 @@ $(document).ready(function () { password = password || ''; if (add) { addExternalShare(remote, token, owner, name, password).then(function (result) { - if (result) { + if (result && result !== 'false') { FileList.reload(); } else { OC.dialogs.alert('Error adding ' + name, 'Error adding share'); @@ -37,7 +37,7 @@ $(document).ready(function () { } }; - if (window.FileList) {// only run in the files app + if (window.FileList && window.FileList.appName === 'Files') {// only run in the files app var hash = location.hash; location.hash = ''; var remote = getParameterByName(hash, 'remote'); |