mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-13 05:39:59 +00:00
fix dir.js & improve group-side-nav.js
This commit is contained in:
@@ -229,9 +229,10 @@ define([
|
|||||||
var path = dir.path;
|
var path = dir.path;
|
||||||
var context = 'my';
|
var context = 'my';
|
||||||
|
|
||||||
if (dir.category.startsWith('org')) {
|
var category_start = dir.category.split('/')[0];
|
||||||
|
if (category_start == 'org') {
|
||||||
context = 'org';
|
context = 'org';
|
||||||
} else if (dir.category.startsWith('group')) {
|
} else if (category_start == 'group') {
|
||||||
context = 'group';
|
context = 'group';
|
||||||
}
|
}
|
||||||
var obj = {
|
var obj = {
|
||||||
|
@@ -16,6 +16,9 @@ define([
|
|||||||
},
|
},
|
||||||
|
|
||||||
render: function (group_id) {
|
render: function (group_id) {
|
||||||
|
if (this.group_id && this.group_id == group_id) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
this.group_id = group_id;
|
this.group_id = group_id;
|
||||||
var _this = this;
|
var _this = this;
|
||||||
$.ajax({
|
$.ajax({
|
||||||
|
Reference in New Issue
Block a user