]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fixed disappearing of share info in file view 2460/head
authorMichael Jobst <mjobst@necls.com>
Wed, 2 Nov 2016 19:20:48 +0000 (20:20 +0100)
committerMorris Jobke <hey@morrisjobke.de>
Fri, 2 Dec 2016 00:21:09 +0000 (01:21 +0100)
apps/files_sharing/js/share.js

index 07ec5f766a10a36ecb37a826554d8d3f51fc4007..25cbbb019c2bc8bcaeaf131be27a19fa83574d66 100644 (file)
                                var fileInfo = oldElementToFile.apply(this, arguments);
                                fileInfo.sharePermissions = $el.attr('data-share-permissions') || undefined;
                                fileInfo.shareOwner = $el.attr('data-share-owner') || undefined;
+
+                               if( $el.attr('data-share-types')){
+                                       var shareTypes = $el.attr('data-share-types').split(',');
+                                       fileInfo.shareTypes = shareTypes;
+                               }
+
                                return fileInfo;
                        };
 
 })();
 
 OC.Plugins.register('OCA.Files.FileList', OCA.Sharing.Util);
-