Don't load item if it doesn't have it status set
This commit is contained in:
parent
2554f674de
commit
4f10574065
|
@ -30,7 +30,7 @@ OC.Share={
|
||||||
},
|
},
|
||||||
loadItem:function(itemType, item) {
|
loadItem:function(itemType, item) {
|
||||||
var data = '';
|
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) {
|
$.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') {
|
if (result && result.status === 'success') {
|
||||||
data = result.data;
|
data = result.data;
|
||||||
|
@ -38,7 +38,7 @@ OC.Share={
|
||||||
data = false;
|
data = false;
|
||||||
}
|
}
|
||||||
}});
|
}});
|
||||||
// }
|
}
|
||||||
return data;
|
return data;
|
||||||
},
|
},
|
||||||
share:function(itemType, item, shareType, shareWith, permissions, callback) {
|
share:function(itemType, item, shareType, shareWith, permissions, callback) {
|
||||||
|
|
Loading…
Reference in New Issue