You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
532 B

(function() {
OCA.Printer = OCA.Printer || {};
/**
* @namespace
*/
OCA.Printer.Util = {
/**
* Initialize the Printer plugin.
*
* @param {OCA.Files.FileList} fileList file list to be extended
*/
attach: function(fileList) {
if (fileList.id === 'trashbin' || fileList.id === 'files.public') {
return;
}
fileList.registerTabView(new OCA.Printer.PrinterTabView('printerTabView', {}));
}
};
})();
OC.Plugins.register('OCA.Files.FileList', OCA.Printer.Util);