Templates in polls and canvas, and ability to disable templates

This commit is contained in:
yflory committed 2017-04-10 14:19:15 +02:00
1 parent 84d8615cf1
commit bd16e0f0e7
5 files changed
+54 -6

No files matched your search

+2 -1
View File
@@ -219,7 +219,8 @@ define([
// Categories dislayed in the menu
// _WORKGROUP_ : do not display unsorted
var displayedCategories = [ROOT, UNSORTED, TRASH, SEARCH, TEMPLATE];
var displayedCategories = [ROOT, UNSORTED, TRASH, SEARCH];
if (AppConfig.enableTemplates) { displayedCategories.push(TEMPLATE); }
if (isWorkgroup()) { displayedCategories = [ROOT, TRASH, SEARCH]; }
var lastSelectTime;