summaryrefslogtreecommitdiffstats
path: root/core/js
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2012-08-06 13:30:44 -0400
committerMichael Gapczynski <mtgap@owncloud.com>2012-08-06 13:30:44 -0400
commit4f105740653fa6c323551dcd821fb29ca8ecfb7c (patch)
tree0f17406f3ec9907d55797af5593b24c3c227e77c /core/js
parent2554f674dec321d53f33af85b047da7789a80c29 (diff)
downloadnextcloud-server-4f105740653fa6c323551dcd821fb29ca8ecfb7c.tar.gz
nextcloud-server-4f105740653fa6c323551dcd821fb29ca8ecfb7c.zip
Don't load item if it doesn't have it status set
Diffstat (limited to 'core/js')
-rw-r--r--core/js/share.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/js/share.js b/core/js/share.js
index dd790d004ee..48fbc9c4f42 100644
--- a/core/js/share.js
+++ b/core/js/share.js
@@ -30,7 +30,7 @@ OC.Share={
},
loadItem:function(itemType, item) {
var data = '';
-// if (typeof OC.Share.statuses[item] !== 'undefined') {
+ if (typeof OC.Share.statuses[item] !== 'undefined') {
$.ajax({type: 'GET', url: OC.filePath('core', 'ajax', 'share.php'), data: { fetch: 'getItem', itemType: itemType, item: item }, async: false, success: function(result) {
if (result && result.status === 'success') {
data = result.data;
@@ -38,7 +38,7 @@ OC.Share={
data = false;
}
}});
-// }
+ }
return data;
},
share:function(itemType, item, shareType, shareWith, permissions, callback) {