mirror of
https://github.com/haiwen/seahub.git
synced 2025-07-18 17:22:05 +00:00
[side nav] fix
This commit is contained in:
parent
eff99890a2
commit
9f23d16b37
@ -60,8 +60,10 @@ define([
|
|||||||
|
|
||||||
if ($icon.hasClass('icon-caret-down')) {
|
if ($icon.hasClass('icon-caret-down')) {
|
||||||
Cookie.set('group_expanded', 'true');
|
Cookie.set('group_expanded', 'true');
|
||||||
|
this.data.show_group_list = true;
|
||||||
} else {
|
} else {
|
||||||
Cookie.set('group_expanded', 'false');
|
Cookie.set('group_expanded', 'false');
|
||||||
|
this.data.show_group_list = false;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
@ -118,14 +120,12 @@ define([
|
|||||||
if (options) {
|
if (options) {
|
||||||
$.extend(this.data, options);
|
$.extend(this.data, options);
|
||||||
}
|
}
|
||||||
this.data.show_group_list = $('#group-nav .grp-list:visible').length ? true : false;
|
|
||||||
|
|
||||||
if (this.$clickedTab) {
|
if (this.$clickedTab) {
|
||||||
// The user click a link and this.$clickedTab is set by visitLink()
|
// The user click a link and this.$clickedTab is set by visitLink()
|
||||||
this.$('.tab-cur').removeClass('tab-cur');
|
this.$('.tab-cur').removeClass('tab-cur');
|
||||||
this.$clickedTab.addClass('tab-cur');
|
this.$clickedTab.addClass('tab-cur');
|
||||||
this.$clickedTab = null;
|
this.$clickedTab = null;
|
||||||
return;
|
|
||||||
} else {
|
} else {
|
||||||
// the first time the side nav is rendered or the side nav is re-rendered
|
// the first time the side nav is rendered or the side nav is re-rendered
|
||||||
// when dismiss a group, leave a group
|
// when dismiss a group, leave a group
|
||||||
|
Loading…
Reference in New Issue
Block a user