1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-12 21:30:39 +00:00

fix dir.js & improve group-side-nav.js

This commit is contained in:
llj
2015-04-14 13:25:10 +08:00
committed by Daniel Pan
parent d60630b9eb
commit 7d861af84b
2 changed files with 6 additions and 2 deletions

View File

@@ -229,9 +229,10 @@ define([
var path = dir.path;
var context = 'my';
if (dir.category.startsWith('org')) {
var category_start = dir.category.split('/')[0];
if (category_start == 'org') {
context = 'org';
} else if (dir.category.startsWith('group')) {
} else if (category_start == 'group') {
context = 'group';
}
var obj = {