Only load sharing statuses if in files app

This commit is contained in:
Michael Gapczynski 2012-05-07 10:21:41 -04:00
parent f28d71bb9c
commit b9033d3b78
1 changed files with 1 additions and 1 deletions

View File

@ -210,9 +210,9 @@ OC.Share={
}
$(document).ready(function() {
OC.Share.loadIcons();
if (typeof FileActions !== 'undefined') {
OC.Share.loadIcons();
FileActions.register('all', 'Share', function(filename) {
// Return the correct sharing icon
if (scanFiles.scanning) { return; } // workaround to prevent additional http request block scanning feedback