Browse Source

Do not register JS share plugin if core sharing API is disabled

tags/v8.2beta1
Vincent Petry 9 years ago
parent
commit
e65034e4bc
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      apps/files_sharing/js/share.js

+ 4
- 0
apps/files_sharing/js/share.js View File

* @param {OCA.Files.FileList} fileList file list to be extended * @param {OCA.Files.FileList} fileList file list to be extended
*/ */
attach: function(fileList) { attach: function(fileList) {
// core sharing is disabled/not loaded
if (!OC.Share) {
return;
}
if (fileList.id === 'trashbin' || fileList.id === 'files.public') { if (fileList.id === 'trashbin' || fileList.id === 'files.public') {
return; return;
} }

Loading…
Cancel
Save