From cd8c3c6b31926398f0ce1e5af2a23803e777f9b2 Mon Sep 17 00:00:00 2001 From: ClemDee Date: Wed, 3 Jul 2019 15:19:07 +0200 Subject: [PATCH] Add collapse/expand-all icons --- www/drive/inner.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/www/drive/inner.js b/www/drive/inner.js index 6df932070..f1350414b 100644 --- a/www/drive/inner.js +++ b/www/drive/inner.js @@ -77,6 +77,8 @@ define([ var faFolderOpen = 'cptools-folder-open'; var faSharedFolder = 'cptools-shared-folder'; var faSharedFolderOpen = 'cptools-shared-folder-open'; + var faExpandAll = 'fa-plus-square-o'; + var faCollapseAll = 'fa-minus-square-o'; var faShared = 'fa-shhare-alt'; var faReadOnly = 'fa-eye'; var faRename = 'fa-pencil'; @@ -316,11 +318,11 @@ define([ $separator.clone()[0], h('li', h('a.cp-app-drive-context-expandall.dropdown-item', { 'tabindex': '-1', - 'data-icon': "expandAll", + 'data-icon': faExpandAll, }, Messages.fc_expandAll)), h('li', h('a.cp-app-drive-context-collapseall.dropdown-item', { 'tabindex': '-1', - 'data-icon': "collapseAll", + 'data-icon': faCollapseAll, }, Messages.fc_collapseAll)), $separator.clone()[0], h('li', h('a.cp-app-drive-context-color.dropdown-item.cp-app-drive-context-editable', {