fixes category and storing list view

This commit is contained in:
yuri
2017-11-22 12:54:18 +02:00
parent b66732bcd0
commit 047c5d5f65
3 changed files with 8 additions and 2 deletions
+1 -1
View File
@@ -20,7 +20,7 @@
<a href="#{{scope}}" class="action link{{#if rootIsSelected}} text-bold{{/if}}" data-action="selectRoot">{{rootName}}</a>
{{/if}}
{{#if showEditLink}}
<a href="#{{scope}}" class="small pull-right" title="{{translate 'Manage Categories' scope=scope}}"><span class="glyphicon glyphicon-th-list"></span></a>
<a href="#{{scope}}" class="small pull-right action" data-action="manageCategories" title="{{translate 'Manage Categories' scope=scope}}"><span class="glyphicon glyphicon-th-list"></span></a>
{{/if}}
<ul class="list-group list-group-tree list-group-no-border">
+5 -1
View File
@@ -156,8 +156,12 @@ Espo.define('views/list-with-categories', 'views/list', function (Dep) {
data[nameAttribute] = this.currentCategoryName;
return data;
}
},
actionManageCategories: function () {
this.clearView('categories');
this.getRouter().navigate('#' + this.categoryScope, {trigger: true});
}
});
});
+2
View File
@@ -30,6 +30,8 @@ Espo.define('views/user/list', 'views/list', function (Dep) {
return Dep.extend({
storeViewAfterUpdate: false,
setup: function () {
Dep.prototype.setup.call(this);
}