Fixed jsunit
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
parent
b49bc11fb3
commit
f39dfc7ab8
|
@ -165,9 +165,9 @@
|
||||||
iconClass: 'icon-shared',
|
iconClass: 'icon-shared',
|
||||||
type: OCA.Files.FileActions.TYPE_INLINE,
|
type: OCA.Files.FileActions.TYPE_INLINE,
|
||||||
actionHandler: function(fileName, context) {
|
actionHandler: function(fileName, context) {
|
||||||
// do not open sidebar if no permission on the file
|
// do not open sidebar if permission is set and equal to 0
|
||||||
var permissions = parseInt(context.$file.data('share-permissions'), 10);
|
var permissions = parseInt(context.$file.data('share-permissions'), 10);
|
||||||
if (permissions > 0) {
|
if (isNaN(permissions) || permissions > 0) {
|
||||||
fileList.showDetailsView(fileName, 'shareTabView');
|
fileList.showDetailsView(fileName, 'shareTabView');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue